Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example 6: keyed-direct retrieval (KSDS, RRDS) z/OS DFSMS Macro Instructions for Data Sets SC23-6852-02 |
|
In this example, a GET macro is used to retrieve fixed-length,
100-byte records directly by key. The key length is 15 bytes; the
search argument is a 5-byte generic key, compared equal. The control
blocks are generated at assembly.
The generic key specifies a class of records. For example, if you search on the first third of employee number, VSAM positions at and retrieves the first of several records starting with the specified characters. To retrieve all the records in that class, either switch to sequential access or to a full-key search with a greater-than-or-equal comparison. The search argument can be a key or relative record number. If the data set is a variable-length RRDS, supply the record length in the RECLEN field in the RPL. |
Copyright IBM Corporation 1990, 2014
|