HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

4-: 11
30 PRINT "Done"
99 END
100 SUBPROGRAM Subrtn(Number,String$)
110 IF Number<1 THEN SUBEXIT
120 FOR I=1 TO Number
130 PRINT RPT$(String$,Number)
140 NEXT I
150 SUBEND !Returns control to line 30
If a program has more than one subunit with the same name, the CALL
statement calls the first one that it finds. The following is the search
order:
1. Single-line function
2. Local external or intrinsic function
3. Internal multi-line function (one defined by the program)
4. Global external or intrinsic subunit
If the program is using softkey handling, the program checks for the key
after the subend statement, but before execution of the next main program
line. Thus, control can not go to the next line following the CALL, but
to a line specified by an ON KEY statement.
CASE and CASE ELSE
The CASE and CASE ELSE statements are part of the SELECT construct.
Refer to the SELECT statement for more information.
CATALOG
The CATALOG statement displays directory information about specified
files. The format of the directory information displayed depends on the
operating system.
Syntax
{CATALOG}
{CAT }[
option_list
]
Parameters
option_list option
, [
option
] [,
option
]
{FILE[=]
filename_or_fileset
}
option
{TYPE[=]
file_code
}
{COUNT[=]
num_var
}
Each option can occur only once in a CATALOG statement.
filename_or_
An
fname
as described chapter 6 or a set of files
fileset
specified by incorporating "wild card" characters. This
is the set of files that directory information is
displayed for. Wild card characters represent a set of
characters and are operating system dependent. On the
HP3000 operating with the MPE XL operating system,
information on the use of wild card characters can be
obtained by typing ":help listf parms". For example,
the "@" symbol specifies zero or more alphanumeric
characters. Thus, the filename, "ab@" specifies the
file "ab" and all additional files that have the "ab"
prefix. If the FILE option is not selected, the default
value for a
filename_or_fileset
is the user's group and
account or the group and account specified in the most
recent FILES ARE IN statement.
file_code
A string expression of up to five characters in length
specifying the type of file and indicated by a file
code. If the TYPE option is selected, then directory
information is displayed about only those files with the
designated
file_code
. The values of
file-code
available
to the user are operating system dependent. The values
for MPE XL are available in the
MPE XL Commands