Version 4.2.6 for Mainframes (Update)
 —  Programming Guide  —

Report Specification - (rep) Notation

(rep) is the output report identifier for which a statement is applicable.

This document covers the following topics:


Use of Report Specifications

If a Natural program is to produce multiple reports, the notation (rep) must be specified with each output statement (see Statements Concerned, below) which is to be used to create output for any report other than the first report (Report 0).

A value of 0 - 31 may be specified.

This notation only applies to reports created in batch mode, to reports under Com-plete, CMS, IMS TM or TIAM; or when using Natural Advanced Facilities under CICS, TSO or UTM.

The value for (rep) may also be a logical name which has been assigned using the DEFINE PRINTER statement, see Example 2 below.

Top of page

Statements Concerned

The notation (rep) can be used with the following output statements:

AT END OF PAGE | AT TOP OF PAGE | COMPOSE | DISPLAY | EJECT | FORMAT | NEWPAGE | PRINT | SKIP | SUSPEND IDENTICAL SUPPRESS | WRITE | WRITE TITLE | WRITE TRAILER

Top of page

Examples of Report Specification

Example 1 - Multiple Reports

DISPLAY (1) NAME ... 
WRITE (4) NAME ...

Example 2 - Using Logical Names

DEFINE PRINTER (LIST=5) OUTPUT 'LPT1' 
WRITE (LIST) NAME ...

Top of page