Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example 5: sequential retrieval for a fixed-Length RRDS z/OS DFSMS Macro Instructions for Data Sets SC23-6852-02 |
|
In this example, a GET macro is used to sequentially retrieve records
by relative record number. Fixed-length, 100-byte records are moved
to a work area. Processing is synchronous.
The records are retrieved in relative record number sequence. Empty records are bypassed for sequential retrieval. A 4-byte search argument must be specified. The relative record number of each record retrieved is stored in the search argument. VSAM is positioned at the first relative record when the data set is opened, and the next not empty record is retrieved automatically as each GET is issued. The branch to ERROR is taken when the end of the data set is reached. |
Copyright IBM Corporation 1990, 2014
|