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.1 VSAM share options<br />

Share options are an attribute <strong>of</strong> the data set<br />

SHAREOPTIONS(crossregion,crosssystem)<br />

SHAREOPTIONS(1,x)<br />

Figure 7-1 VSAM share options<br />

Share options as a data set attribute<br />

The share options <strong>of</strong> a VSAM data set are specified as a parameter for an IDCAMS DEFINE<br />

CLUSTER that creates a new data set. They show how a component or cluster can be shared<br />

among users.<br />

SHAREOPTIONS (crossregion,crosssystem)<br />

The cross-region share options specify the amount <strong>of</strong> sharing allowed among regions within<br />

the same system or multiple systems. Cross-system share options specify how the data set is<br />

shared among systems. Use global resource serialization (GRS) or a similar product to<br />

perform the serialization.<br />

SHAREOPTIONS (1,x)<br />

The data set can be shared by any number <strong>of</strong> users for read access (open for input), or it can<br />

be accessed by only one user for read/write access (open for output). If the data set is open<br />

for output by one user, a read or read/write request by another user will fail. With this option,<br />

VSAM ensures complete data integrity for the data set. When the data set is already open for<br />

RLS processing, any request to open the data set for non-RLS access will fail.<br />

SHAREOPTIONS (2,x)<br />

The data set can be shared by one user for read/write access, and by any number <strong>of</strong> users for<br />

read access. If the data set is open for output by one user, another open for output request<br />

will fail, but a request for read access will succeed. With this option, VSAM ensures write<br />

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

One user can have the data set open for read/write<br />

access or any number <strong>of</strong> users for read only<br />

SHAREOPTIONS(2,x)<br />

One user can have the data set open for read/write<br />

access and any number <strong>of</strong> users for read only<br />

SHAREOPTIONS(3,x)<br />

Any number <strong>of</strong> users can have the data set open for<br />

both read and write access

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

Saved successfully!

Ooh no, something went wrong!