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 a spool file?

681


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

616


how do you read data area in an rpg program?

1120


is there any way to dynamically merge other html scripts into a given html?

607


what are various techniques to pass parameters from one program to another?

1056






difference between sflrcdnbr and sflnxtchg?

705


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

583


what is the purpose of ovrdta (override data) keyword?

1079


what is the function of cpyf command?

1017


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1015


how do u compile rpgle program?

632


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

633


what does opcode post do ?

1107


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1169


Explain The Keywords Edtcde & Edtwrd?

849