Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example 1: keyed-sequential insertion (KSDS, variable-length RRDS) z/OS DFSMS Macro Instructions for Data Sets SC23-6852-02 |
|
In this example, a PUT macro is used to perform keyed-sequential
insertion in a key-sequenced data set or variable-length RRDS. Variable-length
records with a key length of 15 bytes are moved from a work area.
Some records are inserted between existing records; other records
are added at the end of the data set.
The request parameter list, LIST, is associated with the access method control block, BLOCK. The length of each record to be inserted is put into register 2, which is subsequently used by MODCB to change the record length in the request parameter list. The record length is, therefore, correctly indicated in the request parameter list before the PUT macro is issued. The execution of the PUT macro causes VSAM to skip ahead (never back) to the next record. |
Copyright IBM Corporation 1990, 2014
|