Hi, I just want to count the number of records in a file using JCL. Is there any utility to count the number of records? Can anyone help me on this please..
By itself it does nothing. It is used to invoke the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.
JCL does not have magical powers that solve all problems, JCL is merely the vehicule for telling the processor which program you want it to execute.
So which program do you wish to execute to count the records ?
This job creates a report with a single trailer record containing the record count.
The COUNT subparameter of TRAILER1 provides the number of records for the entire report (all the records) starting at position 1.
REMOVECC omits the ANSI carriage control character from all of the report records.
NODETAIL generates a report with no data records, only header and trailer records, as specified.
Hope this helps. Let me know if you have any further questions.
P.S. All of this is fully documented in the SyncSort for z/OS Programmer's Guide. If you are a licensed customer but do not have access to the documentation, please contact SyncSort Mainframe Product Services and we would be happy to provide them to you.
Thanks for your response. But I dont know the how to use the SYNCTOOL. Can you pls tell me the SYNCTOOL syntax & how to use in my job ? And also how to check the SYNCTOOL is installed in my system ?