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

what is clile code get last digit in numarice value

2 Answers   CFC,


Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?

0 Answers  


What is the use of E specification in RPG?

1 Answers  


Where would you use Override Data Base File?

4 Answers  


Which is better LF or OPNQRYF ? When should we use LF and when should we use OPNQRYF ?

5 Answers   HCL,


Is LDA can be access accross the Job?

9 Answers  


how many triggers can be associated with a file?

1 Answers   IBM,


Job is running in production 24/7 how do u debug that running job ?

1 Answers   Wipro,


How to change file attributes such as size, file wait time, record wait time etc., permanently?

1 Answers  


What is the use of jdftval in as400?

0 Answers  


Define an Interactive Job?

1 Answers  


what are all the contents of subfile?

1 Answers   IBM,


Categories