L *-5/*+5
List a range of lines beginning five lines before the current position of the record pointer and
ending five lines after the record pointer.
L10
List line 10.
L
List the line following the position of the current record pointer. (Used for stepping through
a file, line by line.)
In the first example, TEXT is used to copy SIMCAL into a work file, and the first five lines are listed on the
screen using the LIST command (1). The LIST command is then used with the asterisk--(*)--which
symbolizes the current position of the record pointer. The command calls for a range of ten lines beginning
five lines before the current record pointer position. Since the previous command left the record pointer at
line 5, when the command is executed, lines 1 through 10 are displayed (2).
When the L[IST] command is used without any parameters, the line following the current position of the
record pointer is listed. Thus, lines 11 through 13 are stepped through (3).
(1)
>T SIMCAL
Text completed.
>L 1/5
1
SIMCAL
2
3
4
5
(2)
>L*-5/*+5
1
SIMCAL
2
3
4
5
6
7
8
9
10
(3)
>L
11
>L
12
>L
13
In the second example, LIST is used to bring the last line of the file to the screen (1). Next, the special
character "@", which has the same meaning to RISE as the asterisk (*), is used with LIST to display the
five lines preceding the current position of the record pointer--at line 38 after the last command. Thus, the
last five lines of the file are listed (2).
(1)
>L LAST
38
(2)
>L @-5/L
33
34
35
36
37
38
2- 184
00011H
00012FINPUT
IP
00013FOUTPUT
O
00014IINPUT
AA
00015I
OR
00011H
00012FINPUT
1P
00013FOUTPUT
O
00014IINPUT
AA
00015I
OR
00016I
OR
00017I
OR
000181
OR
00019I
00020I
00021C
01
00022C
02
00023C
03
00048O*END OF PROGRAM
00043O
D 11
00044O
OR
00045O
00046O
D
00047O
00048O*END OF PROGRAM
F
72
F
72
01
1
CA
02
1
CS
F
72
F
72
01
1
CA
02
1
CS
03
1
CM
04
1
CD
05
8
9
OPRND1
SUB
OPRND2
OPRND1
SUB
OPRND2
OPRND1
MULT OPRND2
1P
N1P
13 "C NNNDD NNNDD"
05
15 "INVALID REQUEST"
DISK
DISK
DISK
DISK
72OPRND1
132OPRND2
RESULT
104
RESULT
RESULT
99