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.

The sequence is as follows:<br />

1. VSAM scans the index record in the highest level <strong>of</strong> the index set for a key that is greater<br />

or equal to 23.<br />

2. The entry 67 points to an index record in the next lower level. In this index record, VSAM<br />

scans for an entry for a key that is higher than or equal to 23.<br />

3. The entry 38 points to the sequence set that maps the CA holding the CI containing the<br />

logical record.<br />

4. VSAM scans the sequence set record with the highest key, searching for a key that is<br />

greater than or equal to 23.<br />

5. The entry 26 points to the data component CI that holds the desired record.<br />

6. VSAM searches the CI for the record with key 23. VSAM finds the logical record and gives<br />

it to the application program.<br />

If VSAM does not find a record with the desired key, the application receives a return code<br />

indicating that the record was not found.<br />

168 <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!