REPORT
From CometWiki
REPORT
Syntax:
REPORT
Discussion:
Use the REPORT command to separate format commands from data commands.
Always place the REPORT command before the first data handling command (BREAK, PRINT, TOTAL, etc.).
The REPORT command can also designate secondary data commands in a report specification file.
For example, you may begin a report specification with an INPUT and SORT followed by a REPORT and your data commands for one report.
You may then follow that report with anther REPORT command and data commands, which would product another report from the original format commands (INPUT and SORT), as shown in the following example:
INPUT CUSTOMER SORT ON CUST.NAME REPORT PRINT CUST.NAME;PHONE REPORT PRINT CUST.NAME;CREDIT.LIMIT