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 the function of rlu ?

1 Answers   IBM,


what is the difference between clear and reset opcodes and open and close opcodes?please tell me in real time senario with example please? And What is the use of SFLNXTCHG?Where we can use this?

4 Answers   IBM,


Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?

0 Answers  


which cl command can be used at program execution to redirect the file named in an rpg program?

0 Answers   IBM,


How to know message id (errorid) in msgfile when error is occurred on screen ? WRKMSF will display all error id but i want to know error id based on error msg only?

1 Answers   IBM, Ignis Technologies, SSR,


explain the use of dftwrt display keyword?

1 Answers   IBM,


How do I remove a flag or check no. or name when a user opens too many sessions?

0 Answers  


What is the purpose of OPNQRYF (Open Query File)?

1 Answers  


what is term cua , saa?

1 Answers   IBM,


define the purpose/use for sflrna?

1 Answers   IBM,


what does opcode post do ?

1 Answers   IBM,


Distinguish between logical file and physical file?

1 Answers  


Categories