HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4-: 107
Syntax
PREDICATE
whole_str
FROM
dataset
[ [{>=} ] ]
[WITH
item_name
[{<=}
expr
] ]
[ [{= } ] ]
[[{,} [ [{>=} ]]] ]
[[{;}
dataset
[WITH
item_name
[{<=}
expr
]]]...]
[[ [ [{= } ]]] ]
Parameters
whole_str
A string variable or string array element that is filled
by the PREDICATE statement with the locking information
required by TurboIMAGE. The string can then be used in
the DBLOCK statement to perform the locking.
dataset
The dataset name or number to be locked. If the WITH
clause is not given the entire dataset is locked.
Otherwise, items within the dataset are locked.
item_name
A string expression containing "@" or the name of the
database item to lock. The item must be in the dataset
requested. If
item_name
is not "@", then the relational
operators and the value of the data item to be locked
must be included. If they are not, database error -123,
"illegal relop in a descriptor" will result.
expr
An expression used to limit which items are locked.
Only the items from
item_name
that satisfy the relation
are locked. If the WITH option is not selected, then
the entire
dataset
is locked.
Examples
The following examples show the PREDICATE statement.
100 PREDICATE Pred$ FROM Dset$ WITH Item$="xyz"; Dset2$ WITH Name$ >="TOYS"
200 PREDICATE Pred$ FROM Dset1$; Dset2$; "parts"
300 PREDICATE Pred$ FROM Dset1$; Dset2$ WITH Item$ = "skates"
400 DBLOCK Base$, MODE=5, DESCRIPTOR= Pred$
PRESS KEY
The PRESS KEY statement simulates the pressing of a branch-during-input
key from within a program.
Syntax
PRESS KEY
key_number
Parameters
key_number
An integer or a numeric expression that evaluates to an
integer in the range [1, 8].
Examples
100 PRESS KEY 8 ! Performs the branch associated with the currently
110 ! defined ON KEY statement for f8 in the current
120 !subunit.
PRINT
The PRINT statement can output several values. It can use output
functions to output control characters. The PRINT statement is similar
to the DISP statement. The PRINT statement uses the output device
specified by the most recently executed SEND OUTPUT TO statement, and the