1 / 25

Virtual Storage Access Method

Virtual Storage Access Method. Access Method Interface between application program and Operating System Facilitates data access VSAM Most widely used access method on IBM mainframes Designed to operate in a virtual storage environment Handles all I/O requests to Operating System

oshin
Download Presentation

Virtual Storage Access Method

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Virtual Storage Access Method • Access Method • Interface between application program and Operating System • Facilitates data access • VSAM • Most widely used access method on IBM mainframes • Designed to operate in a virtual storage environment • Handles all I/O requests to Operating System • No physical I/O is done if record is all ready in virtual storage

  2. Terminology • Files or data sets familiar concepts • VSAM files referred to a a cluster • Need to DEFINE CLUSTER when defining VSAM files • Requires no special COBOL coding • Except for little used VSAM sequential files

  3. Virtual Storage Access Method – VSAM – Dataset Types • Entry-sequenced – ESDS • Stored in order written may/not be ordered by a key field • Non-VSAM sequential datasets just as efficient • ASSIGN clause requires AS-ddname

  4. Virtual Storage Access Method – VSAM- Dataset Types • Key-sequenced – KSDS • Consists of two parts • Index – containing key and pointer to record location • Data – records stored in primary key sequence • Can be accessed Sequentially or Randomly • Significant improvement over legacy ISAM files • Relative-record – RRDS • Records accessed by relative record numbers • Can be accessed Sequentially or Randomly

  5. An employee file with Entry-sequenced (ESDS) organization

  6. An employee file with key-sequenced (KSDS ) organization

  7. Relative Record Data Set (RRDS)

  8. VSAM Record Management • Integrated Catalog Facility – ICF • Used to keep track of files on the system • There is one Master Catalog • Can be many User Catalogs • Access Method Services – general purpose VSAM file management program • IDCAMS

  9. VSAM Record Management • Control Intervals • Used to store in fixed length blocks of Logical records • All physical I/O is carried out at the Control Interval level • Control Intervals exist within Control Areas • CA is usually one cylinder on the disk • Free space can be allocated to both CA and CI • VSAM uses the free space when adding new records

  10. ICF - The relationships among the master catalog, user catalogs, and data sets

  11. VSAM datasets are referred to a clusters Records are grouped together in control intervals, and control intervals are grouped together in control areas

  12. The structure of a control interval – for fixed length records 10 bytes is reserved for Control Information

  13. Control Interval Size Match your record size to valid sizes for control intervals – that will maximize storage efficiency

  14. Record organizationin an ESDS

  15. Components of a key-sequenced data set

  16. Accessing a record in a key-sequenced data set

  17. Free space distribution in the data component of a KSDS Need to Insert record 6047

  18. Free space used to insert a record in the data component of a KSDS Need to insert record 6046 ??

  19. Free space used to insert a record in the data component of a KSDS VSAM will split the control area if needed Records are always kept in physical sequence

  20. VSAM supports alternate indices with unique keys

  21. VSAM supports alternate indices with non-unique keys

  22. Next Time Access Method Services

More Related