Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
record count of multiple files.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Fri Mar 07, 2008 8:39 pm    Post subject: record count of multiple files.
Reply with quote

The following is my requirement.

1. a job ftps around 25 input files and I need to find out the record count of each file and I need the add file name in front of the record count.

Now I have to find the number of records in "a0xxx.yyy.zzz " and write it to a seperate file with the corresponding dat names,
like - material.dat : 09382.

I know I can do this via ICETOOL but that needs to have 25 DD statements Is there any way this can be done thru a proc ?

Sam.
Back to top
View user's profile Send private message

vel2k8

New User


Joined: 10 Jun 2005
Posts: 11
Location: Jacksonville

PostPosted: Tue Mar 11, 2008 6:06 pm    Post subject: Reply to: record count of multiple files.
Reply with quote

Hello,

Please use the following sort card.

SORT FIELDS=COPY
OUTFIL TRAILER1=('TEST.FILE.NAME:',COUNT=(M12,LENGTH=10)),NODETAIL

You can have a proc and pass the sort card as a parameter. But you should have 25 cards.

Thanks
Vel.
Back to top
View user's profile Send private message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Wed Mar 26, 2008 8:14 am    Post subject: thnks
Reply with quote

hi vel,
Thnks for your reply....sorry for the delay in response...

Rgds,
Sam.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us