HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 145
If any error or warning results from the command the JCW
CIERROR will be changed to reflect the error or warning.
num_var
If
str_expr
is specified,
num_var
returns the operating
system error number. If
str_expr
is not specified,
num_var
returns the interpreter command error number,
which is:
0 No error (if HP Business BASIC/XL is running interactively).
1 Error (if HP Business BASIC/XL is running from a batch job).
NOTE Just as on-line information on HP Business BASIC/XL is available by
typing HELP in response to the ">" prompt, information on operation
system commands is available by typing :HELP.
Examples
10 SYSTEM !Returns to operating system.
20 SYSTEM "LISTF" !Issues the LISTF command.
30 SYSTEM "SETMSG OFF"0 !Issues the SETMSG command.
40 SYSTEM "LISTF"; STATUS=S !Issues the LISTF command and returns status.
50 SYSTEM "LISTF", STATUS S !Same as line 40.
SYSTEMRUN
The SYSTEMRUN statement runs another program from HP Business BASIC/XL.
The new program can be any program that the operating system can run or.
HP Business BASIC/XL is suspended until the new program finishes, unless
otherwise specified. This statement is primarily available for MPE/V
compatibility; on MPE XL, the SYSTEM statement also can run other programs.
Syntax
As a statement or command:
[{,} ]
SYSTEMRUN
str_expr
[{;} STATUS [=]
num_var
]
As a command only:
{
str_lit
}
:RUN {
unquoted_str_lit
}
Parameters
str_expr
The run string that the operating system recognizes for
any program (HP Business BASIC/XL or not). For the
syntax of this run string, see the appropriate operating
system manual or type
:HELP RUN
.
The following parameters can be added to the operating
system run string (run string parameters are separated
by semicolons):
NOSUSP HP Business BASIC/XL is not suspended.
PRI= Priority of new program. This is one
of: BS, CS, DS, or ES. BS is highest;
ES is lowest. If the specified