HPlogo MPE/iX Commands Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 2 Command Definitions A-B

BBASICPREP

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Compiles and prepares an HP Business BASIC/V program in compatibility mode. HP Business BASIC/V is not part of the HP 3000 Series 900 Computer System Fundamental Operating Software and must be purchased separately.

Syntax

BBASICPREP infile [ ,[ progfile] [ ,listfile] ]

Parameters

infile

Actual file designator of the BSAVE file containing the HP Business BASIC/V program to be compiled. Formal file designator is BBCIN.

progfile

Actual file designator of the program file to 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. If you do create your own program file, you must do so in one of two ways:

  • 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.

listfile

Actual file designator of the file on which the program listing is written. This can be any ASCII output file. Formal file designator is BBCLIST. Default is $STDLIST.

NOTE: The formal file designators used in this command (BBCIN and BBCLIST) 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 BBASICPREP command compiles and prepares a program from a BSAVE file generated by the HP Business BASIC/V interpreter. If you omit the progfile parameter, the prepared program segments are stored in the systemcdefined 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 BBASICPREP command line, or specify a nonexistent progfile.

A BSAVE program file can be created from within the HP Business BASIC/V interpreter after it is written, by using the HP Business BASIC/V interpreter >SAVE filename command. The program may be compiled with the BBASICOMP command, then prepared with the PREP command, and executed with the RUN command.

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.

Example

To compile and prepare a program named MYPROG from the HP Business BASIC/V BSAVE file named MYCOMDS, and send the listing to the standard list device, enter:

  BBASICPREP MYCOMDS,MYPROG

Related Information

Commands

BBASIC, BBASICGO, BBASICOMP

Manuals

HP Business BASIC/XL Reference Manual

MPE Segmenter Reference Manual

Feedback to webmaster