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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between sflclr and sflinz?

1037


What is compiler directive in as400? Give example of compiler directive.?

574


different type of cursor?

640


under given circumstances, my cgi should link to another site. How to implement this?

578


define the purpose of the *bcat function?

914






how do you use commitment control in rpg program ?

1279


can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com

2238


the maximum number of subfiles that can be active for a single file is ____ .

1181


at what level s,o are defined and what they will do?

974


What is the maximum number of subfiles that can be specified in a display file?

1147


which indicator is used for read?

629


which cl command is used to trap error messages during program execution?

865


can a join logical file be updated?

589


what is the purpose of indicators in rpg?

1096


how can I control from my cgis the cache of a remote browser?

679