Report Specification - (rep) Notation

#### Search Results

Search

# 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

- Statements Concerned

- Examples of Report Specification

## 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, or IMS TM; or when using Natural Advanced Facilities under CICS or TSO.

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

## 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`

## 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 ...

### On this page

- Use of Report Specifications
- Statements Concerned
- Examples of Report Specification