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 clile code get last digit in numarice value
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
What is the use of E specification in RPG?
Where would you use Override Data Base File?
Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?
Is LDA can be access accross the Job?
how many triggers can be associated with a file?
Job is running in production 24/7 how do u debug that running job ?
How to change file attributes such as size, file wait time, record wait time etc., permanently?
What is the use of jdftval in as400?
Define an Interactive Job?
what are all the contents of subfile?