QUERY/400 doesn't have a constraint on record numbers.
You could use CYPF to copy the first 20 records to a temporary file
Then use QUERY/400 to report the records.
If you don't need the record formatting from Query, you could just use CPYF to copy the first 20 records to *PRINT.
Last Wiki Answer Submitted: March 31, 2009 8:18 am by philpl1jb44,180 pts.
All Answer Wiki Contributors: philpl1jb44,180 pts.