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

2-: 34
If neither LIST nor BASIC DATA is specified, the program is stored in the
BASIC SAVE format.
Parameters
LIST Stores program in ASCII format.
BDATA Stores program in BASIC DATA format.
fname
This must specify a new file.
fname
defaults to the file name of the current program
as determined by the most recent GET or NAME command if
this parameter is not specified.
line_range_
If the program is to be stored in ASCII or BASIC DATA
list
format,
line_range_list
has the syntax explained in
"Specifying Line Ranges" earlier in this chapter.
If the program is to be stored in program format, a
program unit is the smallest unit that can be specified,
and the main program is always stored, whether it is
specified or not. If
ln_spec1
is a line number or
label, it must belong to the first line of a program
unit; if
ln_spec2
is a line number or label, it must
belong to the last line of a program unit. If
ln_spec1
and
ln_spec2
do not belong to the same program unit, all
program units between them are stored.
NOMSG Suppresses messages issued by SAVE. The WARNINGS ON and
WARNINGS OFF statements do not affect these messages.
Examples
SAVE "File1" !Saves File1 as type BASIC SAVE
SAVE LIST "File2" !Saves File2 as type ASCII
SAVE BDATA "File3" !Saves File3 as type BASIC DATA
SAVE "File4",MAIN,5000/5999 !Saves File4 as a main program, with
!lines 5000/5999
SAVE "File5",Sub1/Sub6;NOMSG !Saves File 5 as Sub1/Sub6, any SAVE
!messages are suppressed.
Program Debugging
Two HP Business BASIC/XL features make debugging the current program
easier: trace statements and suspension during execution. Trace
statements print messages when one line transfers control to another
that is not sequentially the next line in the program, or when a variable
is assigned a value.
The program is suspended when one of the following occurs:
* The program executes a PAUSE statement.
* You press CONTROL Y (when no ON HALT is active).
* You press CONTROL Y twice in rapid succession.
* An error occurs (and error-handling is not active).