BASICPREP. HP (Hewlett-Packard) HP 3000
Реклама
Реклама
Command Definitions A-B
BASICPREP
BASICPREP
Compiles and prepares a compatibility mode BASIC/V program. BASIC/V is not part of the
HP 3000 Series 900 Computer System Fundamental Operating Software and must be purchased separately.
Syntax
BASICPREP[
commandfile
] [ ,[
progfile
] [ ,
listfile
] ]
Parameters
commandfile
Actual file designator of the input file from which the BASIC/V compiler commands are read. This can be any ASCII file. Formal file designator is
BSCTEXT
. Default is
$STDINX
.
progfile
Actual file designator of the program file on which the prepared program segments are written. When progfile is omitted, the MPE segmenter creates the program file, which resides in the temporary file domain as
$OLDPASS
. To create your own program file, do so in one of two ways:
listfile
• By using the
BUILD
command and specifying a file code of
1029
or
PROG and a numextents value of 1. This file is then used by the
PREP command.
• By specifying a nonexistent file in the progfile parameter, in which case a temporary job file of the correct size and type is created.
Actual file designator of the file to which the listing is written. This can be any ASCII output file. Formal file designator is
BSCLIST
. Default is
$STDLIST
.
NOTE
The formal file designators used in this command (
BSCTEXT
and
BSCLIST
) cannot be backreferenced as actual file designators in the command parameter list. For further information, refer to the "Implicit FILE
Commands for Subsystems" discussion of the
FILE
command.
Operation Notes
The
BASICPREP
command compiles and prepares a program for execution from a " fastsave" file generated by the BASIC/V interpreter. If the progfile parameter is omitted, the prepared program segments are stored in the systemcdefined temporary file
$OLDPASS
. To save the prepared program in a file other than
$OLDPASS
, either create a file and specify its file name on the
BASICPREP
command line, or specify a nonexistent
progfile.
A program compiled and prepared with the
BASICPREP
command may be executed with the MPE/iX
RUN
command.
Chapter 2 91
Command Definitions A-B
BASICPREP
Use
This command may be issued from a session, job, or program. It may not be used in
BREAK. Pressing
Break
suspends the execution of this command. Entering the
RESUME command continues the execution.
Examples
To compile and prepare a program named
MYPROG
from the BASIC/V fastsave file named
MYCOMDS
, with the listing directed to the standard list device, enter:
BASICPREP,MYCOMDS
The file
MYPROG
is an ASCII file that contains the following BASIC/V compiler commands:
$CONTROL USLINIT SOURCE
$COMPILE MYPROG
$EXIT
The above example initializes the USL and lists the program, compiles the fastsave program
MYPROG
, and then exits from the compiler.
Related Information
Commands
BASIC
,
BASICGO
,
BASICOMP
Manuals
BASIC/V Compiler Reference Manual
92 Chapter 2
Изтегляне
Реклама