calculate the number of records in a file in cobol
Mainframe_Dinosaur Profile Answers by Mainframe_Dinosaur. Mainframe programmers wouldn't normally write a Cobol program just to count the number of records in a file. We would count the number of records using DFSort or SyncSort, or use AMS(Idcams repro). Both SORT and REPRO would be executed in a JCL stream. Much faster than writing a Cobol program.