Is this possible? I am trying to pull the total number of records currently in a file. I ahve been using the QDBRTVFD API to get all the information I need but I can't find anything in there to get the number of records in the file. But I DID find a CL command to do it and I wanted to use the 'system' procedure to run the CL command, but all I seem to be able to get from it is a 1 or 0 depending on if it is an error or not, is there any way to receive returned variables from a CL command within an RPG?