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 |
How are the objects stored on AS/400?
Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?
Can level check error occur if we do chgpf?
How to see all members of a file?
what is the syntax for plist?
What are the different types of messages in CL?
define the purpose of the *cat function?
Is it possible to add an keyfield or field to an Physical file without changing its file identifier. Example : - Say I have an existing physical file which is being used in 5 programs. Now I want to add an additional Keyfield or an field to it and I don't want to recompile the programs.
What are the different types of specification available in RPG/400 ?
What would be the output of the variable result? D RESULT S 5S O INZ(00011) C EVAL RESULT = %TRIM(RESULT) Please give me the correct answer for this A.0001 b.compile time error c.11 d.Runtime error
How to create an Access path in Synon/2E ?
What is an authorization list?