HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

2-: 10
50 NEXT I
60 Loop2: FOR I=1 TO 2 !Fill B
70 FOR J=1 TO 4
75 REM INNER LOOP
80 B$(I,J)=CHR$(I)+CHR$(J)
85 PRINT I,J
90 NEXT J
100 NEXT I
999 END
>
indent 3,5
>
list
! exam217
5 ! BEGIN PROGRAM
10 DIM A(5),B$(2,4)[2]
20 INTEGER X,Y,Z
30 Loop1: FOR I=1 TO 5 !Fill A
40 A(I)=I
45 PRINT I
50 NEXT I
60 Loop2: FOR I=1 TO 2 !Fill B
70 FOR J=1 TO 4
75 REM INNER LOOP
80 B$(I,J)=CHR$(I)+CHR$(J)
85 PRINT I,J
90 NEXT J
100 NEXT I
999 END
>
LIST Command
The LIST command lists all or part of a program to the destination
specified by the SEND SYSTEM OUTPUT TO statement (usually the terminal)
or to a specified device (usually a spooled printer). The LIST command
is a command-only statement. That is, it can only be issued at the
interpreter prompt and cannot be placed in a program. Compiler
formatting options can be used to print page titles or page numbers,
control the number of lines printed per page and print a list of the
identifiers in the program.
Syntax
[ {NONAME }]
LIST [
line_range_list
] [TO
dev_spec
] [;{FORMATTED}]
[ {FORMAT }]
Parameters
dev_spec
See "Device Specification Syntax," in chapter 6. If
this parameter is specified, the LIST command lists the
lines on the specified device (
dev_spec
); otherwise, it
appends them to the file specified by the most recently
executed SEND SYSTEM OUTPUT TO statement.
NONAME The program name is not listed if this parameter is