REPORT (report selected record)
REPORT produces a report that shows the results of each record processed by the PRL statements between SELECT and REPORT. Each field specified by the USING statement is reported until end of file.
The default report size is 50 lines x 132 print positions. The report size can be changed by SET LINES = and SET WIDTH = as shown by SET-assign-a-value. The width of the body of the report is determined by the record fields and variables specified in the USING statement (see USING-designate-column-headings-and-record-fields.)
The statement following REPORT receives control when all selection criteria presented by the SELECT verb have been met and the file has reached its end.
Syntax
REPORT
Example
SELECT TYPE CC RECORDS FROM CMRSTATS
USING CMRDATE T6FSPGIN T6FSPGOU
SUMMARY
REPORT
END
USING CMRDATE T6FSPGIN T6FSPGOU
SUMMARY
REPORT
END
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*