HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
C-: 1
Appendix C HP Business BASIC/XL Configuration Utility
The configuration file (HPBBCNFG.PUB.SYS), supplied with HP Business
BASIC/XL, is a convenient way of supplying defaults to HP Business
BASIC/XL for the language features shown in Table C-1 at the end of
this appendix. The HP Business BASIC/XL configuration utility
(CNFGHPBB.PUB.SYS) is a program that allows you to create and change
configuration files.
A configuration file is used to customize the HP Business BASIC/XL
environment to the conventions of your installation. For example,
suppose that most applications are financial and it is a convention that
all variables be declared. In this case, you can use the configuration
utility to create a configuration file with all of the original defaults,
except with OPTION DECIMAL instead of OPTION REAL and OPTION DECLARE
instead of OPTION NODECLARE. Programmers then could avoid having to
include a line such as the following in programs that are run in this
environment:
10 GLOBAL OPTION DECIMAL,DECLARE
MPE XL file equations can be used to cause HP Business BASIC/XL to use a
file other than HPBBCNFG.PUB.SYS for configuration information. This is
useful, for example, when an individual user wishes to have a different
HP Business BASIC/XL environment than the site standard. This alternate
configuration file does not have to reside in PUB.SYS, it can be in any
place you have access to. For example, to run a version of the HP
Business BASIC/XL interpreter that has Swedish as the native language,
you could create a user defined command in MPE XL that uses a
configuration file in the local group, as shown below:
SWEDHPBB
FILE HPBBCNFG.PUB.SYS=SWEDCNFG
BBASIC
RESET HPBBCNFG.PUB.SYS
If you type SWEDHPBB, the configuration file is set to SWEDCNFG, the HP
Business BASIC/XL interpreter is invoked, and when you exit from the
interpreter, the configuration file is reset to the system default
configuration file. The file, SWEDCNFG, is a configuration file that has
the native language parameter of 13.
The standard HP Business BASIC/XL defaults take effect when one of the
following occurs:
* HP Business BASIC/XL runs without a configuration file.
* HP Business BASIC/XL runs with a configuration file that was created
by running the configuration utility and accepting the original
defaults that it supplied.
* HP Business BASIC/XL runs with a configuration file, but is unable to
access it.
Although OPTION statements in your program will override the defaults in
the configuration file, the defaults contained in the configuration file
take effect when one of the following occurs:
* The HP Business BASIC/XL interpreter runs.
* A SCRATCH ALL or a SCRATCH PROG command executes (this only applies
in the interpreter).
* A compiled HP Business BASIC/XL program runs.