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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7.2 Base VSAM buffering<br />

Three types <strong>of</strong> base VSAM buffering<br />

NSR - non-shared resources<br />

LSR - local shared resources<br />

GSR - global shared resources<br />

Specified in the VSAM ACB macro:<br />

MACRF=(NSR/LSR/GSR)<br />

Figure 7-2 Base VSAM buffering<br />

Three types <strong>of</strong> base VSAM buffering<br />

Before VSAM RLS there were only three buffering techniques available for the user that<br />

opens the data set.<br />

NSR - non-shared resources<br />

For NSR, data buffers belong to a particular request parameter list (RPL). When an<br />

application uses an RPL (for example, for a direct GET request), VSAM manages the buffers<br />

as follows:<br />

1. For record 1000, VSAM locates the CI containing the record and reads it into the local<br />

buffer in private storage.<br />

2. If the next GET request is for record 5000, which is in a separate CI from record 1000,<br />

VSAM overwrites the buffer with the new CI.<br />

3. Another GET request for record 1001, which is in the same CI as record 1000, causes<br />

another I/O request for the CI to read it into the buffer, because it had been overlaid by the<br />

second request for record 5000.<br />

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

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

Saved successfully!

Ooh no, something went wrong!