IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

record count of multiple files.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 8
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts To get the count of rows for every 1 ... DB2 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top