HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 12
Reference Manual
under the BUILD command's file code
mnemonics. Valid values include "BSVXL", "BDTXL", "JL",
or "1200". If the TYPE option is not specified, then
TYPE information is not used as a selection criteria for
determining which file's directory information is
displayed.
num_var
A numeric variable to which the total number of files
found is returned.
The CATALOG statement lists its information on the standard list device
or on the device specified by the most recently executed SEND SYSTEM
OUTPUT TO statement. Table 4-1 shows how specifying
file_code
or
fname
,
both, or neither, determines CATALOG statement output on the HP 3000.
Table 4-1. CATALOG Statement Output
--------------------------------------------------------------------------------------------
| | |
| FILE and TYPE option selected | Files That the CATALOG |
| | Statement Lists Directory |
| | Information For |
| | |
--------------------------------------------------------------------------------------------
| | |
| Neither | All files. |
| | |
--------------------------------------------------------------------------------------------
| | |
| TYPE only | Files that have an MPE file code matching |
| |
file_code
. |
| | |
--------------------------------------------------------------------------------------------
| | |
| FILE only | Files that match the
filename_or_fileset
|
| | specification. |
| | |
--------------------------------------------------------------------------------------------
| | |
| FILE and TYPE | Files that match the
filename_or_fileset
|
| | specification that also have the MPE file code |
| | matching
file_code
. |
| | |
--------------------------------------------------------------------------------------------
Examples
CAT
CAT file1
CAT FILE ="File1"
CAT TYPE = "BDTXL"
10 CAT FILE ="@BB@",TYPE="BSVXL",COUNT=Count
20 CAT FILE ="@.PUB.SYS",COUNT=System_count
CAUSE ERROR
The CAUSE ERROR statement causes an HP Business BASIC/XL program to
behave as though the specified error had occurred. If an ON ERROR
statement has been issued, then the user-specified recovery action is
executed.
Syntax
CAUSE ERROR
error_number
Parameters
error_number
A numeric value that is the same as an HP Business
BASIC/XL error number.
Example
10 ON ERROR GOTO 200
20 CAUSE ERROR 2 !This causes an error 2, memory overflow