HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
9-: 18
objfile
Name of binary file that the compiler writes the object
code into. It can be either an NMOBJ or an NMRL file.
The default
objfile
is $OLDPASS if it exists and is type
NMOBJ; otherwise, it is $NEWPASS. If the system uses
$NEWPASS as
objfile
, it changes the name of the file to
$OLDPASS when it closes it.
To create a new, permanent NMOBJ file, do any one of the
following:
* Specify a filename that is not in a directory as
this parameter. The operating system creates a
permanent NMOBJ file of the correct size and type.
* $OLDPASS is the NMOBJ file, save it to the permanent
file space with the operating system command :SAVE
$OLDPASS,
filename
.
* Build an NMOBJ file with the link editor command,
BUILDRL.
* Build a file with the operating system command
:BUILD, using filecode parameter NMOBJ.
To create a new, permanent NMRL file, do any one of the
following:
* Build an NMRL file with the link editor command,
BUILDRL.
* Build a file with the operating system command
:BUILD, using filecode parameter NMRL.
listfile
Name of ASCII file that the compiler writes the compiler
listing into. The default
listfile
is $STDLIST.
listfile
can be the terminal or a spoolfile.
progfile
Name of binary file that the link editor writes the
program into. The default
progfile
, $NEWPASS, is
renamed $OLDPASS when closed.
To create a new, permanent program file, do any one of
the following:
* Specify a filename that is not in a directory as
this parameter. The system creates a temporary file
of the correct size and type.
* If $OLDPASS is the NMPRG file, save it to the
permanent file space with the operating system
command :SAVE $OLDPASS,
filename
.
* Build a new file with the operating system command
:BUILD, using filecode parameter NMPRG.
If
progfile
exists, the operating system reuses it. An
error occurs if
progfile
is too small, or if its
filecode is not NMPRG.
Main Program Procedure
The main program of a compiled program is not an outer block, but a
procedure. The outer block of a compiled HP Business BASIC/XL program
initializes the program and then calls the main program. The name of the
outer block is always BB_PROGRAM. The name of the main program procedure
is the upshifted name of the file that contains the program source code;
for example, if the filename of the file containing the program is
MYPROG.MYGROUP, the main program procedure name is MYPROG.