Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
PUT—Write next record (QISAM interface to VSAM) z/OS DFSMS Macro Instructions for Data Sets SC23-6852-02 |
||||
The PUT macro writes a record into an indexed sequential data set. If the move mode is used, the PUT macro moves a logical record into an output buffer from which it is written. If locate mode is specified, the address of the next available output buffer segment is available in register 1 after the PUT macro is executed. The logical record can then be constructed in the buffer for output as the next record. The records are blocked by the system (if specified in the data control block) before being placed in the data set. The system uses the length specified in the record length (DCBLRECL) field of the data control block as the length of the record currently being written.When constructing blocked variable-length records in the locate mode, the problem program might either specify the maximum record length once in the DCBLRECL field of the data control block or provide the actual record length in the DCBLRECL field before issuing each PUT macro. Using the maximum record length may result in more but shorter blocks, because the system uses this length when it tests to see if the next record can be contained in the current block. The PUT macro is used to write a new indexed sequential data set or extend it.To extend the data set, the key of any added record must be higher than the highest key existing in the data set, and the disposition parameter of the DD statement must be specified as DISP=MOD. The new records are placed in the prime data space, starting in the first available space, until the original space allocation is exhausted. To allocate a data set using previously allocated space, the disposition parameter of the DD statement must specify DISP=OLD. For QISAM, interface to VSAM PUT must be issued in 24-bit mode. Recommendation: The system no longer supports indexed sequential data sets. Convert the data set to a key sequenced data set (KSDS) and use the ISAM interface of VSAM or convert your program to use VSAM. The format of the PUT macro is:
|
Copyright IBM Corporation 1990, 2014
|