Compiles and prepares a Compatibility Mode BASIC/V program.
HP Business BASIC/V is not part of the 900 Series HP 3000
Computer System Fundamental Operating Software and must be
purchased separately. (CM)


     BASICPREP [commandfile][,[progfile][,listfile]]


commandfile         Actual file designator of the input file from which
the 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 V/E Segmenter creates
the program file, which will reside in the temporary
file domain as $OLDPASS. If you do create your own
program file, you must do so in one of two ways

o Using the MPE/iX 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.

o Specifying a nonexistent file in the progfile
parameter, in which case a temporary job file of
the correct size and type is created.

listfile 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


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 MPE/iX FILE command.


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 RESUME continues the execution.


     The BASICPREP command compiles and prepares a program for
execution from a fastsave file generated by the BASIC/V
interpreter. If you omit the progfile parameter, the
prepared program segments are stored in the system-defined
temporary file $OLDPASS. If you want to save the prepared
program in a file other than $OLDPASS, you may either create
a file and specify its file name on the BASICPREP command
line, or specify a nonexistent progfile.

A program that you have compiled and prepared with the
BASICPREP command may be executed with the MPE/iX RUN command.


     To compile and prepare a program named MYPROG from the BASIC/V
fastsave file named MYCOMDS, with listing directed to the
standard list device, enter


The file MYPROG is an ASCII file that contains the following
BASIC/V compiler commands

$CONTROL USLINIT SOURCE ** Initializes USL and lists **
** program. **
$COMPILE MYPROG ** Compiles fastsave program. **
$EXIT ** Exits from compiler. **

The example above initializes the USL and lists the program,
compiles the fastsave program MYPROG, and then exits from the compiler.



Manuals :  BASIC/V Interpreter Manual (32103-90001)