Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups 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
Author Message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 40
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
References
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: 40
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
Moved: Sun Apr 06, 2008 6:11 am by William Thompson From JCL to DFSORT/ICETOOL
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1