Search Parameter

From BR Wiki
Jump to navigation Jump to search

The optional "KEY" and "SEARCH" parameters are used with internal files opened for KEYED processing. After the string expression is evaluated (usually a simple string variable or constant), the system reads the first record which matches the key field. If a KEY or SEARCH clause is not specified, the system inputs the next record in key sequence.

For complete information about the KEY and SEARCH parameters and the "=" and ">=" operators (used for full and partial matches either exactly equal or "next greater"), see more in the Index Facility.

Used in these statements: