On Tuesday, September 16, 1997, 12:05 PM, Ken Gaede wrote: Is there a way to find out how many records will be read after doing an opnqryf (with keyfld & qryslt both entered). We have an inquiry where users type in sort fields and any filters they want to put on the data. From this we build an opnqryf statement, read the records and put them to a subfile (building a page at a time). What they want to see is how many records passed the filters and will be displayed. This is a good topic for an OS/400 improvement. I have wanted this feature for years. The only way I know of accomplishing this. is to execute a CPYFRMQRYF immediately after the OPNQRYF, and then a RTVMBRD to get the number of records in the newly created file. David Abramowitz

Reply With Quote