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.8 Buffering under VSAM RLS<br />

CICS<br />

R/W<br />

CICS<br />

R/W<br />

Batch<br />

R/O<br />

<strong>System</strong> 1<br />

MACRF=RLS<br />

VSAM RLS<br />

aka<br />

SMSVSAM<br />

SMSVSAM<br />

data space<br />

Figure 7-8 Buffering under VSAM RLS<br />

New VSAM buffering technique MACRF=RLS<br />

We have already discussed NSR, LSR, and GSR (refer to 7.2, “Base VSAM buffering” on<br />

page 380). RLS is another method <strong>of</strong> buffering which you can specify in the MACRF<br />

parameter <strong>of</strong> the ACB macro. RLS and NSR/LSR/GSR are mutually exclusive.<br />

Bufferpools in the data space<br />

Unlike NSR, LSR, or GSR, the VSAM buffers reside in a data space and not in private or<br />

global storage <strong>of</strong> a user address space. Each image in the sysplex has one large local buffer<br />

pool in the data space.<br />

The first request for a record after data set open for RLS processing will cause an I/O<br />

operation to read in the CI that contains this record. A copy <strong>of</strong> the CI is stored into the cache<br />

structure <strong>of</strong> the Coupling Facility and in the buffer pool in the data space.<br />

Buffer coherency<br />

Buffer coherency is maintained through the use <strong>of</strong> Coupling Facility (CF) cache structures<br />

and the XCF cross-invalidation function. For the example in Figure 7-8, that means:<br />

1. <strong>System</strong> 1 opens the VSAM data set for read/write processing.<br />

2. <strong>System</strong> 1 reads in CI1 and CI3 from DASD; both CIs are stored in the cache structure in<br />

the Coupling Facility.<br />

3. <strong>System</strong> 2 opens the data set for read processing.<br />

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

coupling facility<br />

VSAM data set<br />

VSAM RLS<br />

aka<br />

SMSVSAM<br />

1 3 1 4<br />

1 3 4<br />

1 2 3 4<br />

SMSVSAM<br />

data space<br />

<strong>System</strong> 2<br />

CICS<br />

R/W<br />

CICS<br />

R/W<br />

Batch<br />

R/O

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

Saved successfully!

Ooh no, something went wrong!