I have written a series of pgms that clean-up or delete records. Each pgm deletes records from quite a few files.
I would like to create a log as the programs are running that tracks the starting number of records, ending number of records, and the number of records deleted for each file. I would like to do this with a few lines of code.
Questions:
Other than RTVMBRD command - is there a way in RPG to determine the number of records in a file?
Is there a DS (INFDS, etc.) that contains the record format name of the file currentl (or last) opened/updated? Given the number of files involved, it would be helpful to have the filename/format name in a variable w/out having to "eval" it myself.
Thx
I would like to create a log as the programs are running that tracks the starting number of records, ending number of records, and the number of records deleted for each file. I would like to do this with a few lines of code.
Questions:
Other than RTVMBRD command - is there a way in RPG to determine the number of records in a file?
Is there a DS (INFDS, etc.) that contains the record format name of the file currentl (or last) opened/updated? Given the number of files involved, it would be helpful to have the filename/format name in a variable w/out having to "eval" it myself.
Thx







Comment