To count no.of records in a file



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

To count no.of records in a file

Postby yousufroushan » Thu Jun 24, 2010 12:47 pm

can we write a JCL to count the no.of records in a given file. The file can be of any type.
yousufroushan
 
Posts: 8
Joined: Wed Jun 23, 2010 5:57 pm
Has thanked: 0 time
Been thanked: 0 time

Re: To count no.of records in a file

Postby expat » Thu Jun 24, 2010 12:49 pm

Look at the documentation for your sort product. However, it is probably more efficient for the creating program to issue a record count rather than having to reprocess all of the data again just to get a record count.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: To count no.of records in a file

Postby yousufroushan » Thu Jun 24, 2010 2:35 pm

Thankyou expat for your suggsetion.
yousufroushan
 
Posts: 8
Joined: Wed Jun 23, 2010 5:57 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post