If your cobol source is in member of source physical file, you have to use your platform specific command to read it from REXX.
For example on the iSeries (aka AS/400) I can use OVRDBF command to override STDIN with a LIB/FILE(MEMBER) and then use PARSE LINEIN to process STDIN.
I have no idea about z/OS, but I guess there are z/OS commands for working with source members.
And these commands you can then use from within your REXX program.
Whenever this question comes up, I always recommend working from the compiler listing rather than the source. The compiler has all kinds of function for calculating statements (which is really what you want, right?) and it makes no sense for anyone to re-do that work.
I mean: if I spread a single statement over 12 lines you want that counted as "1" rather than "12". The alternative is that I can manipulate your statistic to suit my personal needs.
Frank Clarke
--Is it time for another Boston Tea Party?
The requirement that I have is to generate an inventory list.
i.e for each COBOL source PDS, I need to know all the members name, the input and output files, total lines of code,etc.
Hence want to do so in a way which is quick and easy to use.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.