List Command - IBM 5100 Basic Reference Manual

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

(
(
LIST [PRINT
1
~{KI.
EYx
}]
t
IOe-num
LIST COMMAND
The LIST command allows you to display or optionally print the program or data
lines from the work area. The contents of the work area are unchanged. The contents
must be BASIC, DATA, or a KEY group (which requires a different LIST syntax).
The syntax of the LIST command is as shown:
LIST [PRINT
1
~{~EYX
}]
.
t
IIOe-num
where:
PRINT specifies that the list of lines in the work area is to be printed rather than
displayed. If PRINT is not specified, the list will be displayed.
KEYx specifies that the indicated key group should be displayed or printed
(x
=
0 to 9).
line-num
specifies that a group of 14 lines, ending with the indicated line
number, is to be displayed. If PRINT is also specified, the entire work area,
starting
with the indicated line number, will be printed. If no line number is
entered, the lowest line number in the work area is assumed for printing. This
entry is not valid for a KEYx group. For displaying, up to the first 14 lines are
displayed.
When the listing is specified to the display, the line specified in the LIST command
appears on line 2 of the display screen. The preceding 13 lines (less, if less than 14
are defined) are displayed on the lines above line 2. You can use the scroll up and
scroll down keys (-I- and
t)
to arrive at a particular line.
When the listing is specified to the printer, the entire work area, starting with the
specified line number in the LIST command, is printed. Printing begins at the
lowest line number if a line number is not specified in the LIST command.
13

Advertisement

Table of Contents
loading

Table of Contents