The TEXT command prints or displays the text of the declaration of a specified identifier. If a window is specified, lines on either side of the declaration are included.
Syntax
── TEXT ─┬────────────────────────────────────────┬────────────────────┤
│ ┌◄───────────────────────────────────┐ │
└─┴─┬─/1\─<identifier specification>─┬─┴─┘
├─/1\─ : ──<number>──────────────┤
├─/1\─ : ── PRINTER ─────────────┤
└─/1\─ : ── REMOTE ──────────────┘
Explanation
TEXT
Lists the text of the declaration of the specified work identifier. The work identifier is the identifier used in the most recently entered EXPAND, LOCATE, REFERENCE, SUMMARY, or TEXT command. If the work identifier is empty, an error occurs.
<identifier specification>
Specifies a particular identifier. All references to that identifier are listed. If the identifier is an INTERFACE or PROCEDURE, the entire body is printed or displayed. For other identifiers, the line where the identifier is declared is shown in the ouput.
<number>
Causes <number>-1 lines of text around the declaration to be printed or displayed.
PRINTER
Sends output to the line printer by way of a file internally named LINE.
REMOTE
Sends output to the terminal. This option can be used when PRINTER has been specified so that output is sent to the terminal as well as to the printer.