how to get no of records in file in rpg with out cl cmd
Answers were Sorted based on User's Feedback
Answer / shobhit
With the help of INFDS(File information data structure) we
can know the no of records in file.
Ex.
D NUM_RCDS 156 159I O * Num of records
| Is This Answer Correct ? | 44 Yes | 0 No |
Answer / shobhit
Read the file from beginning and increase the counter by
one till end of file. At the last the counter value will be
the no of records in file.
| Is This Answer Correct ? | 5 Yes | 15 No |
What is the purpose of CHGPF (Change physical file) command?
What Does Lokup Does In Tables & Arrays?
when would you use or not use this approach?
What is SDA used for?
what is the clp command to access a query/400?
what is a logical file?
can u plz tell me is there any difference between SHELL SCRIPT & SFTP SCRIPT? I want to run LS & GET(automatically) command from CL program....which script can be used?
What is the use of E specification in RPG?
how does the runqry show the output?
how can you specify no duplicate key?
Space & Skip Are Which Level Keywords?
What is the Select and Omit criteria in logical file?