I want to check number of lines in the source code of cobol on mainframe. cobol source code resides in one of the PDS on mainframes.
Note: I am new to Mainframe OS. Previously I was working on AS/400 OS. Trying to see Mainframe OS through IBMi lens.
If all the source code is in one dataset or PDS member, simply Edit or View the dataset and issue the primary command 'X all' to exclude all lines. There will be an information line showing how many lines are excluded which - because you excluded ALL lines - will be the number of lines in the dataset.