Command Reference 5-69
Rule:
Buffer-field1
and
buffer-field2
must be the same type. For example, if
buffer-field1
is numeric,
buffer-field2
must be numeric.
If the record is not found, the pointer is undefined. The script must execute the
command again to ensure a valid record pointer.
Optional Fields
Invalid
and
valid labels
are discussed in "Script Flow" at the beginning of this
chapter. The exception is as follows:
If the search fails to find the requested field or it detects end of file, control passes
to
invalid label
.
Example
This example searches the CONTROL_ID field for an exact match with the Input
Buffer's contents. If there is no match, control passes to *ERROR_ID. Otherwise,
control passes to the *PROCESS_ID.
QUERY CONTROL_ID,EQ,INPUT,*ERROR_ID,*PROCESS_ID
See Also
READ
SEEK