KEY (K)
The KEY command scrolls to the record with the specified key (VSAM-KSDS only). If you omit the operands, File-AID displays the Key Specification screen from which you can enter the key to retrieve.
The command is available in the Browse and Edit functions in all modes.
key value, 'key value', “key value”, X'key value', C'key value', C”key value”, F'key value', and H'key value'
Scrolls to the record with the specified key.
X - Hex
C - Character (Case-sensitive)
F - Fullword (4 bytes).
H - Halfword (2 bytes).
NEXT
Retrieves the first record with a key greater than or equal to the key-value parameter.
KEY Value Specification Screen
When File-AID displays the following figure, the key field number and name are displayed under the FIELD NUMBER/NAME column, the field format is displayed under the FORMAT column, and the value of the current record key field is displayed in the data area. Type over the displayed data item to specify the value for which you want to search. When you press Enter, File-AID scrolls to the specified record or displays the message: RECORD NOT FOUND in the upper-right corner of the screen.
KEY Value Specification Screen
COMMAND ===> SCROLL ===> CSR
KEY START POS 1 KEY LENGTH 5
KEY VALUE SPECIFICATION
---- FIELD LEVEL/NAME ------- -FORMAT- ----+----1----+----2----+----3----+----4
******************************** TOP OF DATA **********************************
5 EMP-NUMBER 5/AN 00090
****************************** BOTTOM OF DATA *********************************
Use RIGHT, LEFT commands to browse through keys
Use ENTER when the key value has been fully specified
Use CANCEL command to terminate KEY SPECIFICATION without processing the key