The DEFINEOUTPUT request formats a report's output. This request permits you to explicitly control line width, page size, and output medium. The DEFINEOUTPUT request applies to all task requests that appear after the DEFINEOUTPUT request in the FILEDATA statement. If one of the subsequent task requests specifies its own output parameters (as the ATTRIBUTES request can with the options PRINTER or SCREEN), then those output parameters apply only to that task request.
<defineoutput request>
── DEFINEOUTPUT ─┬──────────────────────────────────────────┬──────────┤ │ ┌◄─────────────────────────────────┐ │ └─ : ─┴─┬──────────────────────────────┬─┴─┘ ├─ PAGESIZE ──┬─ = ──<integer>─┤ ├─ LINEWIDTH ─┘ │ └─ MEDIATYPE ── = ─┬─ PRINTER ─┤ ├─ TTY ─────┤ ├─ SCREEN ──┤ └─ SPO ─────┘
Explanation
MEDIATYPE
Specifies the output device. For an explanation of the device options, refer to “Output Options” earlier in this section.
FILEDATA Modifiers
The following modifiers are used to modify the output. Refer to “FILEDATA Modifiers” later in this section.
-
PAGESIZE
-
LINEWIDTH
CHECKERBOARD Example
This example generates a CHECKERBOARD report and saves it in a disk file titled CB/REPORT ON PACK. The DEFINEOUTPUT request is used to specify a 132–byte record size, which is the minimum needed for a CHECKERBOARD report.
RUN *SYSTEM/FILEDATA ("DEFINEOUTPUT: LINEWIDTH=132; CHECK: FAMILY=DBFAM, FILENAME=CB/REPORT ON PACK")