What process is available in Report Facility (PRF) to direct query results to a dataset?
The PRF PRINT command will facilitate this. Also, you will need to change the online printing option in the System Profile from 'N' to 'Y' to avoid the PRF0747E message that will occur if the System
Profile has 'N' set for online printing. Please review the Report Facility documentation under section "Printing to a Dataset" for details on supplying the destination dataset information.