6.2.35.5 Indexed Files
When the KEY phrase is specified, the key data item used for the
comparison is data-name.
When the KEY phrase is not specified, the key data item used for the EQUAL
TO comparison is the prime RECORD KEY.
When START statement execution is successful, the RECORD KEY or ALTERNATE
RECORD KEY with which data-name is associated becomes the key of reference
for subsequent READ statements.
-
data-name-1
-
Can be any of the following:
- The prime RECORD KEY
- Any ALTERNATE RECORD KEY
- An alphanumeric data item within a record description for a file
whose leftmost character position corresponds to the leftmost
character position of that record key; it may be qualified. The
data item must be less than or equal to the length of the record
key for the file.
X Data-name-1 need not be an alphanumeric item. However, for
X purposes of the I/O operation, it will be treated as an
X alphanumeric item.
The file position indicator points to the first record in the file whose
key field satisfies the comparison. If the operands in the comparison are
of unequal lengths, the comparison proceeds as if the longer field were
truncated on the right to the length of the shorter field. All other
numeric and nonnumeric comparison rules apply, except that the PROGRAM
COLLATING SEQUENCE clause, if specified, has no effect.
When START statement execution is successful, the RECORD KEY with which
data-name-1 is associated becomes the key of reference for subsequent READ
statements.
When START statement execution is unsuccessful, the key of reference is
undefined.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.