LIST Command

The LIST command lists text from the symbol file. The symbol file must be loaded before the LIST command can be used.

Syntax

── LIST ─┬────────────────────────────────────────────┬────────────────┤
         │ ┌◄───────────────────────────────────────┐ │
         │ │       ┌◄──────────── , ────────────┐   │ │
         └─┴─┬─/1\─┴─┬─<sequence range>───────┬─┴─┬─┴─┘
             │       ├─<procedure identifier>─┤   │
             │       └─<interface identifier>─┘   │
             ├─/1\─ : ── PRINTER ─────────────────┤
             ├─/1\─ : ── REMOTE ──────────────────┤
             └─/1\─ : ── FILE ──<file name>───────┘

<sequence range>

──<sequence number>─┬────────────────┬─┬────────────────────────┬──────┤
                    └─ < ──<integer>─┘ ├─ - ──<sequence number>─┤
                                       └─ - ── END ─────────────┘

Explanation

LIST

Lists the entire file.

<sequence number>

Lists only the line specified by the sequence number. The file must be properly sequenced if any of the sequence number options are to be used.

<sequence number> < <integer>

Causes the command to begin listing the specified number of lines back from the sequence number and to list through the end of the file.

<sequence number> – <sequence number>

Lists the file beginning with the first sequence number through the second sequence number.

<sequence number> – END

Lists the file beginning with the specified sequence number through the end of the file.

<procedure identifier> <interface identifier>

List only the specified procedure or interface.

PRINTER

Sends the output to the line printer by way of a file internally named LINE.

REMOTE

Sends the output to the terminal. This option can be used with the PRINTER option to send the output to the terminal as well as to the PRINTER.

FILE <file name>

Causes all lines in the sequence range, or all lines of the requested procedures or interfaces, to be written to a disk file with the specified file name. This file cannot already exist. The file name is created with the same FILETYPE value as the file loaded by the SYMBOL command. Refer to “SYMBOL Command” in this section.

Examples

The following command lists procedure ONE:

LIST ONE
00002200 PROCEDURE ONE;
00002300    BEGIN
00002400    MEAN:=2;
00002500    FOR I:= 0 STEP 1 UNTIL 5 DO
00002600       MEAN:= MEAN * B;
00002700       C:= C * MEAN;
00002800       STRG:= EQUATION;
00002900    END ONE;
%