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.

image2021-6-3_12-56-4.png

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 Screenimage2021-6-3_12-56-55.png

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*