BSCAN |
|
|
The BSCAN statement provides a method to scan an alternate key index. It is provided for compatibility with another multivalue product and is best replaced by use of SETLEFT, SETRIGHT, SELECTLEFT and SELECTRIGHT.
Format
BSCAN indexed.value {, ids} FROM fvar {, value} USING index {RESET} {BY seq} {THEN statement(s)} {ELSE statement(s)}
where
At least one of the THEN and ELSE clauses must be present. The THEN clause will be executed if the action is successful. The ELSE clause will be executed at an error and the value of the STATUS() function will provide further information regarding the cause of the failure.
If value is specified, the BSCAN operation positions at that value in the index or, if there is no index entry for the value, at the position where it would have been. The nearest index entry in the scan order is returned.
|