USE-REPORT
Syntax
USE-REPORT {report_name_lit|_var|_col}
Description
For programs with multiple reports, enables the user to switch between reports.
The USE-REPORT command specifies which report files the subsequent report output is to be written to. An application can contain several USE-REPORT statements to control several reports.
You must specify the report name and report characteristics in a DECLARE-REPORT paragraph and in the associated DECLARE-LAYOUT and DECLARE- PRINTER paragraphs.
Parameters
| Parameter | Description |
|---|---|
|
{report_name_lit|_var|_col} |
Specifies the report to become the current report. All subsequent PRINT and PRINT-DIRECT statements are written to this report until the next USE- REPORT is encountered. |
Example
The following example shows the USE-REPORT command:
use-report customer_orders
use-printer-type PostScript
print (1, 1) 'Customer Name: '
print () $customer_name
See DECLARE-REPORT, DECLARE-LAYOUT, DECLARE-PRINTER , USE-PRINTER-TYPE