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 can send report to user through cl program in as400

1 Answers  


what are the parameters required for calling ls & get command(SFTP COMMANDS) from cl progtram.... e.g call PGM(qp2shell) PARM('/qopensys/usr/bin/sh' '-c' 'sftp -b /home/mydir/tmp.txt user@host.com') Plz reply in detail...

1 Answers  


how do you read data area in an rpg program?

1 Answers   IBM,


What are the types of data structure in as400?

0 Answers  


Logic cycle

1 Answers  






what are the different types of arrays available in rpg ?

1 Answers   IBM,


what are the different types of variables available in cl?

1 Answers   IBM,


which are control break logic indicators?

0 Answers   IBM,


What are the types of Signature validation?

1 Answers  


What is the purpose of "A CSRLOC (F1ROW F1COL)"?

1 Answers  


Q.1.What is differences in STRDBG and STRISDB debugging commands? 2.Where we should use STRDBG and STRISDB Debugging commands?

6 Answers   CTS,


Difference Between Skip Before & Space Before?

0 Answers   IBM,


Categories