LIST [ HPTOOLSET XL Reference Manual ] MPE/iX 5.0 Documentation
HPTOOLSET XL Reference Manual
LIST
Allows you to list a specific portion of your edit or read file while in
command mode.
Syntax
L[IST] [line rangelist] [|TO| LP] [UN[NUMBERED]]
Parameters
Line Rangelist Defines the range of lines you want listed. Pascal
listings are displayed for the procedure where the file
pointer is located. That location can be determined by
doing a FIND *. Line range = ALL or n[/n], where n can
be a line number, F[IRST], L[AST], *, or an expression
involving any of these and a plus sign (+) or minus sign
(-) The * means the current line. For example, L - 10/L
would print the last 11 lines of the file; * + 5/20, if
the current line is 3, would print lines 9 through 20.
If more than one range is given, separate them by
commas. If no line rangelist is given, the current line
will be listed.
TO LP Enables you to get a line printer listing of your file.
The formal file designator for the line printer is
TOOLLIST. By default, the file is listed to your
terminal. When in visual mode, the PRINT key can be
used to list the file to the line printer.
UNNUMBERED Lists your file without sequence numbers. The default
is to list the file with numbers.
Example
>>LIST 100/135
100 DISPLAY "EXAMPLE: ABCD ABC 1ABC".
110 DISPLAY "EXAMPLE2: ABCDEFGHIFKLMNO ABC".
120 DISPLAY "MORE EXAMPLES...".
130 DISPLAY ".....".
>>
>>LIST 15 UN
GET-INPUT.
>>
MPE/iX 5.0 Documentation