How to: Reference: |
The SET command, SET EMPTYREPORT, enables you to control the output generated when a TABLE request retrieves zero records.
The EMPTYREPORT=ANSI setting introduces ANSI-compliant handling of reports with zero records, producing a one-line report containing only the specified missing data character. If the request is a COUNT operation, however, a zero is displayed for the missing values.
Use this command:
SET EMPTYREPORT = {ANSI|ON|OFF}
Valid values are:
Produces a single-line report and displays the missing data character or a zero if a COUNT is requested. in each case, &RECORDS will be 0, and &LINES will be 1.
If the SQL Translator is invoked, ANSI automatically replaces OFF as the default setting for EMPTYREPORT.
Generates an empty report when zero records are found.
Does not generate a report when zero records are found. OFF is the default setting.
The command may also be issued from a request. For example:
ON TABLE SET EMPTYREPORT ON
Information Builders |