how to get no of records in file in rpg with out cl cmd
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.