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.

4.30 Virtual storage access method (VSAM)<br />

Catalog<br />

Management<br />

CATALOG<br />

Figure 4-40 Virtual storage access method<br />

Virtual storage access method (VSAM)<br />

VSAM is a DFSMSdfp component used to organize data and maintain information about the<br />

data in a catalog. VSAM arranges records by an index key, relative record number, or relative<br />

byte addressing. VSAM is used for direct or sequential processing <strong>of</strong> fixed-length and<br />

variable-length records on DASD. Data that is organized by VSAM is cataloged for easy<br />

retrieval and is stored in one <strong>of</strong> five types <strong>of</strong> data sets.<br />

There are two major parts <strong>of</strong> VSAM:<br />

► Catalog management - The catalog contains information about the data sets.<br />

► Record management - VSAM can be used to organize records into five types <strong>of</strong> data sets,<br />

that is, the VSAM access method function:<br />

– Key-sequenced data sets (KSDS) contain records in ascending collating sequence.<br />

Records can be accessed by a field, called a key, or by a relative byte address.<br />

– Entry-sequenced data sets (ESDS) contain records in the order in which they were<br />

entered. Records are added to the end <strong>of</strong> the data set.<br />

– Linear data sets (LDS) contain data that has no record boundaries. Linear data sets<br />

contain none <strong>of</strong> the control information that other VSAM data sets do. Linear data sets<br />

must be cataloged in a catalog.<br />

– Relative record data sets (RRDS) contains records in relative record number order, and<br />

the records can be accessed only by this number. There are two types <strong>of</strong> relative<br />

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

Record<br />

Management<br />

VSAM DATA SETS<br />

VSAM Data set types:<br />

KSDS<br />

ESDS<br />

LDS<br />

RRDS<br />

Fixed Length<br />

Variable Length

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

Saved successfully!

Ooh no, something went wrong!