Interactive LIST Command

The interactive LIST command lists the file opened by the preceding OPEN command. This command differs from the standard LIST command in that you do not specify a file name.

Syntax

             ┌◄────────────┬──────┬────────────┐
             │             └◄─ , ─┘            │
──┬─ LIST ─┬─┴─┬─────────────────────────────┬─┴──────────────────────
  └─ LAN ──┘   ├─<print option>──────────────┤
               ├─/1\─<format definition>─────┤
               ├─<record range list>─┬───────┤
               │                     └─<key>─┤
               ├─<skip specification>────────┤
               ├─ SKIPTM ──<integer>─────────┤
               ├─ PRINT ─────────────────────┤
               ├─ TRAINID ── = ──<train ID>──┤
               └─<key>───────────────────────┘

Explanation

LIST

Lists the file in the format specified by the INTMODE attribute of the file.

LAN

Lists the file in a print option depending on the INTMODE attribute value of the file as follows:

INTMODE

Print Option

SINGLE

EBCDIC, Hex

HEX

Hex

EBCDIC

EBCDIC, Hex

ASCII

ASCII, Hex

<print option>

Specifies the print option to be used.

If you specify a single print option and it is EBCDIC or ASCII, DUMPALL lists the record as one unit in the format specified in the print option. If you specify a single print option and it is REAL, DECIMAL, HEXADECIMAL, or OCTAL, DUMPALL lists the record in word-sized chunks.

If you specify more than one print option, DUMPALL lists the record in word-sized chunks, one format below the other on a page. Because DECIMAL is a subset of REAL, if you specify both, only REAL formatting takes place. Refer to “Print Option” later in this section for more information about <print option>.

<format definition>

Describes one or more particular fields within a record and their formats. DUMPALL lists only the specified fields. Refer to “Format Definition” later in this section for more information about <format definition>.

<record range list>

Specifies a group of records to be processed. Refer to “Record Range List” later in this section for more information about <record range list>.

<key>

Allows you to select records based in part on the data in the records. Refer to “Key Option” later in this section for an explanation of <key>.

<skip specification>

Lists the part of the file specified by the record range list or the skip specification. Refer to “Skip Specification” later in this section for more information about <skip specification>.

SKIPTM <integer>

Causes the specified number of tape marks to be skipped before the file is listed. SKIPTM 0 is equivalent to omitting the SKIPTM option.

PRINT

Lists the file on the printer.

TRAINID = <train ID>

Lists the file on the printer using the specified train.