z/OS DFSMS Using Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using the SYNCDEV Macro to Synchronize Data

z/OS DFSMS Using Data Sets
SC23-6855-00

Data still in the buffer might not yet reside on the final recording medium. This is called data that is not synchronized. Data synchronization is the process by which the system ensures that data previously given to the system via WRITE, PUT, and PUTX macros is written to the storage medium.

The SYNCDEV macro performs data synchronization for the following:
  • Magnetic tape cartridge devices supporting buffered write mode
  • PDSEs to DASD
  • Compressed format data sets to DASD.
You can do the following for a magnetic tape cartridge device:
  • Request information regarding synchronization, or
  • Demand that synchronization occur based on a specified number of data blocks that are allowed to be buffered. If zero is specified, synchronization will always occur.

When SYNCDEV completes successfully (return code 0), a value is returned that shows the number of data blocks remaining in the control unit buffer. For PDSEs and compressed format data sets, the value returned is always zero. For PDSEs and compressed format data sets, requests for synchronization information or for partial synchronization cause complete synchronization. Specify Guaranteed Synchronous Write through storage class to ensure that data is synchronized to DASD at the completion of each CHECK macro. However, this degrades performance. This produces the same result as issuing the SYNCDEV macro after each CHECK macro. See z/OS DFSMSdfp Storage Administration for information about how the storage administrator specifies guaranteed synchronous write.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014