EXPAND statement and parameter
The EXPAND statement specifies that all groups in the reports will be expanded and printed in their expanded format.
It applies to all reports that are produced by subsequent REPORT statements in the same job stream. The NOEXPAND statement specifies that only the data included on initial display of the report online are included in subsequent printed reports. NOEXPAND is the default.
When used as a parameter of the REPORT statement, EXPAND or NOEXPAND relates only to the reports that are specified in that REPORT statement. An EXPAND or NOEXPAND parameter of a REPORT statement overrides any previously specified EXPAND or NOEXPAND statement.
The only valid abbreviation for EXPAND is EXP, and the only valid abbreviation for NOEXPAND is NOEXP. The following figure shows the syntax of the EXPAND statement and parameter.
Related topic