Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example 5: skip-sequential insertion (KSDS, variable-length RRDS) z/OS DFSMS Macro Instructions for Data Sets SC23-6852-02 |
|
In this example, one PUT macro is used to insert multiple fixed-length,
100-byte records. Records are to be moved asynchronously from a work
area.
Calculate length of each
list and use register notation with the MODCB macro to complete each
list:
Increase the value in
each register and repeat the MODCB until all 5 request parameter lists
have been completed. The last time, register 4 must be set to 0:
You give no search argument for storage: VSAM knows the position of the key field in each record and extracts the key from it. Skip-sequential insertion differs from keyed-direct insertion in the sequence in which records may be inserted (ascending non-consecutive sequence versus random sequence) and in performance. With skip-sequential insertion, if you insert two or more records into a control interval, VSAM does not write the contents of the buffer to direct-access storage until you have inserted all the records. With direct insertion, VSAM writes the contents of the buffer after you have inserted each record. |
Copyright IBM Corporation 1990, 2014
|