Examples [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
Examples
The following is an example of changing the defaults from OPTION REAL to
OPTION DECIMAL and from OPTION NODECLARE to OPTION DECLARE:
:FILE HPBBCNFG.PUB.SYS = HPBBCNFG.group.acct
:run cnfghpbb.pub.sys
HP Business BASIC Configuration Utility (HP32115A.02.07). Version 00.00
Copyright Hewlett-Packard Co. 1985,1986,1987. All Rights Reserved.
Building a new configuration file using default values.
Accessing configuration file HPBBCNFG.PUB.BASICXL
-------------------------------------------------
1 - Default OPTIONS 4 - Terminal Capabilities
2 - PRINTER Specification 5 - Native Language Support
3 - MPE V Interpreter Data Space 6 - All
<return> - Done
Select a category: 1
==============================================================================
DEFAULT OPTIONS
OPTION BASE is used to set the default lower bound for each dimension of
an array.
The current setting of the default is OPTION BASE 0
Do you want to change it to OPTION BASE 1?(N)
--------------------------------------------------------------------------
OPTION DECIMAL or OPTION REAL sets the default data type for variables
that are not explicitly declared and functions that do not declare a
return type. The option also determines the data type of intermediate
values used during arithmetic expression evaluation.
The current setting of the default is OPTION REAL
Do you want to change it to OPTION DECIMAL?(N) y
--------------------------------------------------------------------------
OPTION INIT specifies that numeric variables are to be initialized
with zeroes.
The current setting of the default is OPTION INIT
Do you want to change it to OPTION NO INIT?(N)
--------------------------------------------------------------------------
OPTION DECLARE disallows use of variables that are not explicitly declared.
The current setting of the default is OPTION NO DECLARE
Do you want to change it to OPTION DECLARE?(N) y
--------------------------------------------------------------------------
OPTION TRACE enables the Business BASIC interpreter to check for and
perform any tracing following execution of each program line.
The current setting of the default is OPTION TRACE
Do you want to change it to OPTION NOTRACE?(N)
==============================================================================
1 - Default OPTIONS 4 - Terminal Capabilities
2 - PRINTER Specification 5 - Native Language Support
3 - MPE V Interpreter Data Space 6 - All
<return> - Done
Select a category:
Do you want to save these changes?(N) y
File HPBBCNFG.PUB.BASICXL updated.
END OF PROGRAM
The following example shows you how to create a local configuration file
containing the native language number for Swedish.
:FILE HPBBCNFG.PUB.SYS = HPBBCNFG.group.acct
:run cnfghpbb.pub.sys
HP Business BASIC Configuration Utility (HP32115A.02.07). Version 00.00
Copyright Hewlett-Packard Co. 1985,1986,1987. All Rights Reserved.
Accessing configuration file HPBBCNFG.PUB.BASICXL
-------------------------------------------------
1 - Default OPTIONS 4 - Terminal Capabilities
2 - PRINTER Specification 5 - Native Language Support
3 - MPE V Interpreter Data Space 6 - All
<return> - Done
Select a category: 5
==============================================================================
NATIVE LANGUAGE SUPPORT
Configure the underlying native language number that is used to determine
which message catalog to open, the collating sequence used in the SORT
statement and the default collating sequence for the LEX function.
Installed native languages:
0 - NATIVE-3000 5 - ENGLISH 10 - NORWEGIAN
1 - AMERICAN 6 - FINNISH 11 - PORTUGUESE
2 - CANADIAN-FRENCH 7 - FRENCH 12 - SPANISH
3 - DANISH 8 - GERMAN 13 - SWEDISH
4 - DUTCH 9 - ITALIAN 14 - ICELANDIC
The current default native language number is 0
Enter new value if desired: 13
--------------------------------------------------------------------------
Configure the default parameter (representing a native language number) for
the DATE$ built-in function.
The current default parameter is 0
Enter new value if desired:
==============================================================================
1 - Default OPTIONS 4 - Terminal Capabilities
2 - PRINTER Specification 5 - Native Language Support
3 - MPE V Interpreter Data Space 6 - All
<return> - Done
Select a category:
Do you want to save these changes?(N) y
File HPBBCNFG.PUB.BASICXL updated.
END OF PROGRAM
The following is an example of the user dialog for the Configuration
Utility.
:FILE HPBBCNFG.PUB.SYS = HPBBCNFG.group.acct
:run cnfghpbb.pub.sys
HP Business BASIC Configuration Utility (HP32115A.02.07). Version 00.00
Copyright Hewlett-Packard Co. 1985,1986,1987. All Rights Reserved.
Accessing configuration file HPBBCNFG.PUB.BASICXL
-------------------------------------------------
1 - Default OPTIONS 4 - Terminal Capabilities
2 - PRINTER Specification 5 - Native Language Support
3 - MPE V Interpreter Data Space 6 - All
<return> - Done
Select a category: 6
==============================================================================
DEFAULT OPTIONS
OPTION BASE is used to set the default lower bound for each dimension of
an array.
The current setting of the default is OPTION BASE 0
Do you want to change it to OPTION BASE 1?(N)
--------------------------------------------------------------------------
OPTION DECIMAL or OPTION REAL sets the default data type for variables
that are not explicitly declared and functions that do not declare a
return type. The option also determines the data type of intermediate
values used during arithmetic expression evaluation.
The current setting of the default is OPTION DECIMAL
Do you want to change it to OPTION REAL?(N)
--------------------------------------------------------------------------
OPTION INIT specifies that numeric variables are to be initialized
with zeroes.
The current setting of the default is OPTION INIT
Do you want to change it to OPTION NO INIT?(N)
--------------------------------------------------------------------------
OPTION DECLARE disallows use of variables that are not explicitly declared.
The current setting of the default is OPTION DECLARE
Do you want to change it to OPTION NO DECLARE?(N)
--------------------------------------------------------------------------
OPTION TRACE enables the Business BASIC interpreter to check for and
perform any tracing following execution of each program line.
The current setting of the default is OPTION TRACE
Do you want to change it to OPTION NOTRACE?(N)
==============================================================================
PRINTER SPECIFICATION
The SEND OUTPUT, SEND SYSTEM OUTPUT and COPY ALL OUTPUT statements accept
the keyword PRINTER as a destination file. The definition of the keyword
is looked up in the configuration file.
The current definition of PRINTER is *PP
Enter new value if desired:
==============================================================================
INTERPRETER DATA SPACE
The space that the Business BASIC/V Interpreter reserves for user data
is configurable. The valid range of values is from 1000 to 15000 words.
The current setting of the data space limit is 12000 words
Enter new value if desired:
==============================================================================
TERMINAL CAPABILITIES
Several Business BASIC statements and functions depend on the capabilities
of the terminal used. Whether the terminal used by the BASIC program for
input and/or output is expected to be compatible with the BASIC features
is configurable.
The current setting DOES specify a BASIC-compatible terminal.
Do you want to change it?(N)
--------------------------------------------------------------------------
Upon entering the BASIC interpreter, the definitions of any user-defined
keys defined on entry can be automatically saved. The definition that
the keys had on entry are subsequently restored just prior to exit.
The current setting specifies user keys WILL NOT be saved and restored.
Do you want to change it?(N)
==============================================================================
NATIVE LANGUAGE SUPPORT
Configure the underlying native language number that is used to determine
which message catalog to open, the collating sequence used in the SORT
statement and the default collating sequence for the LEX function.
Installed native languages:
0 - NATIVE-3000 5 - ENGLISH 10 - NORWEGIAN
1 - AMERICAN 6 - FINNISH 11 - PORTUGUESE
2 - CANADIAN-FRENCH 7 - FRENCH 12 - SPANISH
3 - DANISH 8 - GERMAN 13 - SWEDISH
4 - DUTCH 9 - ITALIAN 14 - ICELANDIC
The current default native language number is 0
Enter new value if desired:
--------------------------------------------------------------------------
Configure the default parameter (representing a native language number) for
the DATE$ built-in function.
The current default parameter is 0
Enter new value if desired:
==============================================================================
1 - Default OPTIONS 4 - Terminal Capabilities
2 - PRINTER Specification 5 - Native Language Support
3 - MPE V Interpreter Data Space 6 - All
<return> - Done
Select a category:
No changes made, HPBBCNFG.PUB.BASICXL not updated.
END OF PROGRAM
Table C-1. Supplied Defaults of Configurable Features
----------------------------------------------------------------------------------------------
| | | |
| Configurable Feature | Supplied Default | Explanation |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| PRINTER | "*PP" | PRINTER is the standard |
| | | list device. |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| DATA SPACE LIMIT | 12000 | DATA SPACE LIMIT is the |
| | | number of words allocated |
| | | for user data in the |
| | | interpreter (1000-15000) |
| | | under MPE/V. This has no |
| | | effect on HP Business |
| | | BASIC/XL. |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| | OPTION BASE 0 | See the OPTION statement. |
| | | |
| { 0} | | |
| OPTION BASE { 1} | | |
| | | |
| | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| | OPTION REAL | See the OPTION statement. |
| | | |
| { REAL } | | |
| OPTION { DECIMAL} | | |
| | | |
| | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| | OPTION INIT | See the OPTION statement. |
| | | |
| { INIT } | | |
| OPTION { NO INIT} | | |
| | | |
| | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| | OPTION NO DECLARE | See the OPTION statement. |
| | | |
| { DECLARE } | | |
| OPTION { NO DECLARE} | | |
| | | |
| | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| | OPTION TRACE | See the OPTION statement. |
| | | |
| { TRACE } | | |
| OPTION { NO TRACE} | | |
| | | |
| | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| | YES | See appendix E and |
| | | chapter 8. |
| Terminal is an HP compatible | | |
| | | |
| { YES} | | |
| terminal { NO } | | |
| | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| | NO | See chapter 8. |
| | | |
| Save the user's function keys | | |
| | | |
| { YES} | | |
| { NO } | | |
| | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Native language number = 0 | 0 | See chapter 6. |
| native_language_ID_number | | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| DATE$ default argument = 0 integer | 0 | See chapter 6. |
| value | | |
| | | |
----------------------------------------------------------------------------------------------
The value of the configurable features are reset to those in the
configuration file whenever one of the following occurs:
* The HP Business BASIC/XL interpreter runs.
* An HP Business BASIC/XL program compiles.
* A compiled HP Business BASIC/XL program runs.
* A SCRATCH ALL command executes.
* A SCRATCH PROG command executes.
If HP Business BASIC/XL cannot access the configuration file, the
feature's values are set to those supplied when HP Business BASIC/XL is
first installed.
MPE/iX 5.0 Documentation