how to get no of records in file in rpg with out cl cmd

Answers were Sorted based on User's Feedback



how to get no of records in file in rpg with out cl cmd..

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

how to get no of records in file in rpg with out cl cmd..

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

Post New Answer

More IBM AS400 AllOther Interview Questions

how will you find a string using pdm?

0 Answers   IBM,


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?

1 Answers  


What Is The Purpose Of The "n" In The Following Calculation Specification?

0 Answers   IBM,


how you will know whether you are in sfldrop or sflfold mode?

0 Answers   IBM,


what is qcmdexc?

1 Answers   IBM,






how do we know batch job aborted after we submitting it

1 Answers  


What is the purpose of RTVMBRD command?

1 Answers  


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?

6 Answers   IBM,


name few ibm supplied libraries?

2 Answers   IBM,


is it possible to do commitment control with out journaling?

1 Answers  


What controls which printer a report goes to?

4 Answers   Wipro,


what is message subfile?

1 Answers   IBM,


Categories