11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7.12 The batch window problem<br />

Batch window - a period <strong>of</strong> time in which CICS<br />

access to recoverable data sets is quiesced so<br />

batch jobs can run<br />

Requires taking a backup <strong>of</strong> the data set<br />

Batch updates are then performed<br />

A forward recovery backup is taken, if needed<br />

When finished, CICS access to the data set is<br />

re-enabled<br />

Figure 7-12 Batch window problem<br />

Batch window<br />

The batch window is a period <strong>of</strong> time in which online access to recoverable data sets must be<br />

disabled. During this time, no transaction processing can be done. This is normally done<br />

because it is necessary to run batch jobs or other utilities that do not properly support<br />

recoverable data, even if those utilities use also RLS access. Therefore, to allow these jobs or<br />

utilities to safely update the data, it is first necessary to make a copy <strong>of</strong> the data. In the event<br />

that the batch job or utility fails or encounters an error, this copy can be safely restored and<br />

online access can be re-enabled. If the batch job completes successfully, the updated copy <strong>of</strong><br />

the data set can be safely used because only the batch job had access to the data while it<br />

was being updated. Therefore, the data cannot have been corrupted by interference from<br />

online transaction processing.<br />

Quiescing a data set from RLS processing<br />

Before updating a recoverable data set in non-RLS mode, quiesce the data set around the<br />

sysplex. This is to ensure that no RLS access can be done while non-RLS applications are<br />

updating those data sets. The quiesced state is stored in the ICF catalog. After a quiesce has<br />

completed, all CICS files associated with the data set are closed. A quiesced data set can be<br />

opened in non-RLS mode only if no retained locks are presented. Once the data set was<br />

quiesced from RLS processing, it can be opened again in RLS mode only after it is<br />

unquiesced.<br />

See 7.20, “Interacting with VSAM RLS” on page 412 for information about how to quiesce and<br />

unquiesce a data set.<br />

Chapter 7. DFSMS Transactional VSAM Services 395

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!