Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
WAIT—Wait for one or more events (BDAM, BISAM, BPAM, and BSAM) z/OS DFSMS Macro Instructions for Data Sets SC23-6852-02 |
||||
The WAIT macro informs the control program that performance of the active task cannot continue until one or more specific events, each represented by a different ECB (event control block), have occurred. The ECBs represent completion of I/O processing associated with a READ or WRITE macro. ECBs are located at the beginning of access method DECBs (data event control blocks), so that the DECB name provided in READ and WRITE macros is also used for WAIT. (A description of the ECB is found in Status information following an input/output operation.For information on when to use the WAIT macro, see z/OS DFSMS Using Data Sets.) The control program takes the following action:
If the PDSE member is open for update or a compressed format data set is open for output, and in a storage class with "Guaranteed Synchronous Write" specified, issue a CHECK macro following a WRITE macro to guarantee that the data is synchronized to DASD. Otherwise, synchronization is not guaranteed until CLOSE, or the STOW macro or the SYNCDEV macro is issued. Synchronization occurs at CLOSE if BSAM or QSAM are used to process the PDSE members or compressed format data set. Specifying "Guaranteed Synchronous Write" in the storage class produces the same result as issuing the SYNCDEV macro. The format of the WAIT macro is:
Caution: A job step with all its tasks in a WAIT condition terminates on expiration of the time limits that apply to it. Access method ECBs are maintained entirely by the access methods and supporting control program facilities. You can inspect access method ECBs, but should never modify them. |
Copyright IBM Corporation 1990, 2014
|