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.10 VSAM RLS/CICS data set recovery<br />

Recoverable data sets<br />

Defined as LOG(UNDO/ALL) in the catalog<br />

Figure 7-10 Recoverable data sets<br />

Recoverable data set<br />

VSAM record-level sharing introduces a VSAM data set attribute called LOG. With this<br />

attribute a data set can be defined as recoverable or non-recoverable. A data set whose log<br />

parameter is undefined or NONE is considered non-recoverable. A data set whose log<br />

parameter is UNDO or ALL is considered recoverable. For recoverable data sets, a log <strong>of</strong><br />

changed records is maintained to commit and back out transaction changes to a data set.<br />

A data set is considered recoverable if the LOG attribute has one <strong>of</strong> the following values:<br />

► UNDO<br />

The data set is backward recoverable. Changes made by a transaction that does not<br />

succeed (no commit was done) are backed out. CICS provides the transactional recovery.<br />

See also 7.11, “Transactional recovery” on page 394.<br />

► ALL<br />

The data set is both backward and forward recoverable. In addition to the logging and<br />

recovery functions provided for backout (transactional recovery), CICS records the image<br />

<strong>of</strong> changes to the data set, after they were made. The forward recovery log records are<br />

used by forward recovery programs and products such as CICS VSAM Recovery<br />

(CICSVR) to reconstruct the data set in the event <strong>of</strong> hardware or s<strong>of</strong>tware damage to the<br />

data set. This is referred to as data set recovery. For LOG(ALL) data sets, both types <strong>of</strong><br />

recovery are provided, transactional recovery and data set recovery.<br />

392 <strong>ABCs</strong> <strong>of</strong> z/<strong>OS</strong> <strong>System</strong> <strong>Programming</strong> <strong>Volume</strong> 3<br />

UNDO - backout logging performed by CICS<br />

ALL - both backout and forward recovery logging<br />

LOG(ALL) data sets must have a<br />

LOGSTREAMID(forwardrecoverylog) also defined in<br />

the catalog<br />

Non-recoverable data sets<br />

Defined as LOG(NONE) in the catalog<br />

No logging performed by CICS

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

Saved successfully!

Ooh no, something went wrong!