WORKFILE IS [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
WORKFILE IS
The WORKFILE IS statement identifies the file, called a workfile, that
holds the record pointers of the selected records in the database. This
statement is global in nature and deactivates any previously defined
workfile. The file designated as the workfile must be open. The
workfile itself must be a binary file with record size (in words) equal
to twice the number of data sets in the THREAD IS statement. It must be
defined before the SORT or SEARCH statement is executed. Since the
workfile is, by definition, a user-defined file, it is subject to the
same rules and restrictions that apply to HP Business BASIC/XL files. In
addition, open it with both read and write capability.
Syntax
WORKFILE IS #fnum
Parameters
fnum A numeric expression that evaluates to a positive short
integer greater than zero. The value is the same as
that used to open the workfile.
Examples
100 ASSIGN #1 TO "filex" !File #1 is filex
200 WORKFILE IS #1 !filex is the workfile
MPE/iX 5.0 Documentation