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 will you find a string using pdm?
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 Purpose Of The "n" In The Following Calculation Specification?
how you will know whether you are in sfldrop or sflfold mode?
what is qcmdexc?
how do we know batch job aborted after we submitting it
What is the purpose of RTVMBRD command?
Suppose you have 3 members in a database file. How to read records from all the members Without using CL (OVRDBF) i.e. it should be handled exclusively in an RPG program?
name few ibm supplied libraries?
is it possible to do commitment control with out journaling?
What controls which printer a report goes to?
what is message subfile?