HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 31
If neither LIST nor BDATA is specified, the program is stored in the
format of the existing file if the file already exists. If
fname
refers
to a new file, and neither LIST nor BDATA is specified, the default is
type BASIC SAVE.
Parameters
LIST Stores program in ASCII format. If the file exists, it
must be an ASCII file.
BDATA Stores program in BASIC DATA format. If the file
exists, it must be a BASIC DATA file.
fname
This specifies a new or existing file. RESAVE
overwrites an existing file. If
fname
does not exist,
RESAVE creates it and issues a warning that the file did
not exist.
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
is as explained in "Specifying
Line Ranges."
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 a
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 RESAVE. The WARNINGS ON
and WARNINGS OFF statements do not affect these
messages.
Examples
RESAVE "File6" !File 6 is the same type as the existing file
RESAVE LIST "File7" !File 7 is in ASCII format
RESAVE BDATA "File8" !File 8 is a BASIC DATA file
RESAVE "File9",MAIN,5000/5999 !File 9 is a main program, lines 5000/5999
RESAVE "File10",Sub1/Sub6;NOMSG !File 10 is Sub1/Sub6, and no
!RESAVE messages are issued
RUN Command
The RUN Command executes the current program or retrieves a program from
a disk file and executes it. Execution begins at the specified line or
the first program line. The RUN command is a command-only statement.
That is, it can only be issued at the interpreter prompt and can not be
placed in a program.
Syntax
[{,} ]
RUN [
fname
] [{;}
line_id
] [; INFO=
str_expr
]