Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 maximum number of fields under a record format of physical file?

1859


which are the figurative constants used in rpg?

1331


where can you specify an indicator in lokup operation?

1817


what is the syntax for plist?

1121


different type of cursor?

1056


what if my system I runs with system value qccsid 65535?

1051


list some of the commonly used commands for debugging?

1636


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

1050


during input operation which indicator position is seton if there is a record lock?

1599


what is the length of a variable in rpg?

1688


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

1471


what is the use of jdftval in join logical file?

1806


define the purpose of the leave operation?

1610


what is the maximum number of subroutines allowed in rpg?

1782


define subsystem?

1634