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 difference between *like and *namvar ?
How many primary files allowed in a program?
whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario with example
What is the difference between crtdupobj and copyf?
What is the symbol used for shifting fields in SDA?
what are the two record formats a subfile contain ?
different type of cursor?
what are the important factors in error message subfile ?
How to reverse a string using RPG?
What is Job description?
What is the purpose of the following? A CSRLOC (F1ROW F1COL)
Which of the following operations does NOT zero the field FLDA defined as 4,0? C MOVE *ZEROS FLDA C Z-ADD *ZEROS FLDA C Z-ADD 0 FLDA C MOVE *ALL'0' FLDA C SUB FLDA FLDA C MOVE '0000' FLDA C CLEAR FLDA C MOVE *BLANKS FLDA