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 |
define the purpose/use for sflrna?
What are the different types of specification available in RPG/400 ?
Can anybody know what is Pick/Basic? Is it a programming language? can it be used in AS400 machine?
How do you use DEBUG utility?
what is the command to rtrieve system date? options:1.rtvsysval 2.rtvjoba 3.rtvjobd 4.both a and b
What is the exact difference between Service Program and Binding Directory?
How to add 99 menu (page down) option in menu creation..
how to read database records without locking them?
1.what operation cannot be used in conjunction with file coded as divice type disk? 2.Difference between INCLUDE AND COPY?
what is the necessary keyword for non-join logical file?
how can a cgi check whether an ifs object is available?
what does check opcode do ?