REPORT

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(New page: 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,...)
 
Line 1: Line 1:
-
REPORT  
+
 
-
Syntax: REPORT   
+
== 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:  
+
'''Syntax:'''<br>  REPORT   
 +
'''Discussion:'''<br>  Use the REPORT command to separate format commands from data commands.<br>  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.<br>  For example, you may begin a report specification with an INPUT and SORT followed by a REPORT and your data commands for one report.<br>  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
   INPUT CUSTOMER

Latest revision as of 10:33, 6 June 2009

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
Personal tools