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.

LSR - local shared resources<br />

For LSR, data buffers are managed so that the buffers will not be overlaid. Before opening the<br />

data set, the user builds a resource pool in private storage using the BLDVRP macro. The<br />

LSR processing is as follows:<br />

1. A GET request for record 1000 reads in the CI containing the record in one buffer <strong>of</strong> the<br />

buffer pool.<br />

2. The next GET request for record 5000, which is in a separate CI, will read in the CI in<br />

another, separate buffer in the same buffer pool.<br />

3. A third GET request for record 1001 can be satisfied by using the CI that was read in for<br />

the request for record 1000.<br />

GSR - global shared resources<br />

GSR is the same concept as LSR. The only difference is, with GSR the buffer pool and VSAM<br />

control blocks are built in common storage and can be accessed by any address space in the<br />

system.<br />

For more information about VSAM buffering techniques refer to 4.44, “VSAM: Buffering<br />

modes” on page 177.<br />

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

The Access Method Control block (ACB) describes an open VSAM data set. A subparameter<br />

for the ACB macro is MACRF, in which you can specify the buffering technique to be used by<br />

VSAM. For LSR and GSR, you need to run the BLDVRP macro before opening the data set to<br />

create the resource pool.<br />

For information about VSAM macros, see z/<strong>OS</strong> DFSMS: Macro Instructions for Data Sets,<br />

SC26-7408.<br />

Chapter 7. DFSMS Transactional VSAM Services 381

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

Saved successfully!

Ooh no, something went wrong!