To access key-sequenced files at a specific place in the file, code the following control statements.
For z/OS, assign the external file name VSAMCTRL for the control statements:
//VSAMCTRL DD * KEY key-field-format-a key-value-q
Key-field-format-a is a 1-character code in column 6 that specifies the key value format:
The code... |
Specifies... |
---|---|
C |
Character |
H |
Hexadecimal |
Key-value-q, coded in column 7 and enclosed in single quotation marks, specifies an alphanumeric or hexadecimal value of the target key.
For z/VSE, read the control statement(s) in from SYSIPT:
5-step JCL:
// ASSGN SYSIPT,X'device' // EXEC CULL,SIZE=300K KEY key-field-format-a key-value-q
1-step JCL:
// EXEC CULPRIT,SIZE=300K CULPRIT PARAMETERS /* KEY key-field-format-a key-value-q /*
The size specification must be small enough to allow space allocation for VSAM modules in the GETVIS area.
Copyright © 2014 CA.
All rights reserved.
|
|