Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

VSAM Structure

By Exforsys | on June 21, 2007 |
MainFrame

VSAM Structure

In this Mainframe tutorial, you will learn about VSAM Structure,  four major areas of VSAM structure, what is VSAM cluster, VSAM components, Defining VSAM cluster and Example for defining VSAM clusters.

There are four major areas in the structure of VSAM. They are:

  • The Master catalog
  • The User catalog
  • The Data space
  • The file also called as cluster

What is VSAM Cluster?

VSAM dataset which we have seen in detail in our earlier section when defined logically takes up the form as a VSAM cluster. Before proceeding to see about VSAM cluster it is very important to know primarily what a cluster is. A cluster nothing but a association of the index, sequence set and data portions of the dataset. The operating system takes the responsibility of giving program access to the cluster by which access to given to all parts of the dataset simultaneously. The space occupied by a VSAM cluster is divided into contiguous areas called control intervals (CI) and about this concept we have seen in detail in our earlier section.

There are two main components present in a VSAM cluster and they are as given below:

• The data component
• The index component

Data Component of VSAM Cluster: Data records are present in the data component of a VSAM cluster.

Index Component of VSAM Cluster: Index records are present in the index component of a VSAM key-sequenced cluster.

Defining VSAM cluster:

The command used for defining the VSAM cluster is DEFINE CLUSTER which defines the entry name, name of the catalog to contain this definition and its password, Organization detail like sequential, indexed, or relative, Device and volumes that the data set will occupy, Space required for the data set, Record size and control interval sizes, for future access Passwords if needed.

The syntax of this command is as below:

DEFINE CLUSTER (NAME(entryname)
BLOCKS(number)
VOLUMES(volser)
RECORDSIZE(average maximum)
[INDEXED|NONINDEXED|NUMBERED]
[FREESPACE(cipercent capercent)]
[KEYS(length offset)]
[READPW(password)]
[FOR(days)|TO(date)]
[UPDATEPW(password)])
[CATALOG(catname[/password]

In the above syntax

NAME attribute denotes the entry name which is the name of the cluster to be defined. The naming conventions or the rules for naming this attribute takes up the same rules and convention as defined for naming a catalog.

BLOCKS attribute BLOCKS denotes a number and the corresponding number specifies the number of blocks for the cluster. 

VOLUMES parameter denotes the volumes to contain the cluster.

RECORDSIZE parameter has two values:

  • average
  • maximum

The average specifies the average length of the logical records in the file and the maximum denotes the length of the records.

INDEXED|NONINDEXED|NUMBERED parameter can take three values INDEXED, NONINDEXED or NUMBERED depending upon the type of dataset. That is the INDEXED option is given if it is key-sequenced files, for entry-sequenced files the NONINDEXED option and for relative-record files the NUMBERED option is required. The default value of this parameter is INDEXED.

FREESPACE parameter specifies the amount of free space per control interval and per control area for a key-sequenced file. The value of this parameter is specified in percentage. The default value of this parameter is 0 percentage.

KEYS The value of this parameter specifies the size of the key field which in other words depicts the length and the offset of the key from the beginning of the record. The range of value that can be taken by this parameter are from 1 to 255 bytes. It should be noted that the parameter takes its presence only in key-sequenced files.

READPW The value of this parameter denotes the password of read level.

UPDATEPW The value of this parameter denotes the password of update level. 

FOR|TO The value of this parameter specifies the amount of time for retaining the file. The default value taken by this parameter is 0 days.

CATALOG parameter denotes the catalog under which this file will be defined. 

When the VSAM cluster is defined by using the DEFINE CLUSTER command as above an entry gets created in an integrated VSAM catalog.

Example for defining VSAM clusters

DEFINE CLUSTER-
(NAME(SECOND.EXFORSYS)-
VOLUMES(DCE001)-
FREESPACE(20 5)-
BLOCKS(80)-
INDEXED-
KEYS(5 15)-
RECORDSIZE (20 50)-
CATALOG(T1.E2.Test.CATALOG/MASTER)

In the above example cluster SECOND.EXFORSYS is defined, which allocates DCE001 volumes for the corresponding cluster with 20 percentage of free area per control interval and 5% of free area per control area for the cluster. The above cluster SECOND.EXFORSYS in example is defined to occupy 80 blocks and the type is defined as INDEXED which is denoted for key-sequenced files. Being INDEXED the default value of the parameter one need not define this value also. The length of the key field is 20 characters and this field is placed at an offset of 16 characters from the beginning of the record as defined above. Note: For keys, the offset starts from ‘0’. This means that the first character in a records will have the offset ‘0’ and the second character will have an offset ‘1’. The average length of the logical records in the file for the cluster defined takes the value of 20 and the allowable maximum length of the record in the file for the cluster defined is 50.The file is placed in the catalogue  T1.E2.Test.CATALOG/MASTER.

« « JavaScript DOM Window Object
NLP Sensory Acuity » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 394 Followers
  • Popular
  • Recent
  • CICS Components and Transactions

    June 18, 2006 - 0 Comment
  • Introduction to JCL

    November 8, 2006 - 0 Comment
  • Customer Information Control System (CICS)

    July 25, 2006 - 0 Comment
  • Mainframes Computers

    May 27, 2007 - 0 Comment
  • Mainframe Features

    June 17, 2007 - 0 Comment
  • VSAM Introduction

    June 18, 2007 - 0 Comment
  • VSAM Catalogs

    June 20, 2007 - 0 Comment
  • VSAM Control Interval and Control Area

    June 23, 2007 - 0 Comment
  • JES : Job Entry Subsystem

    June 26, 2007 - 0 Comment
  • CICS Overview and Functions

    June 18, 2006 - 0 Comment
  • JES : Job Entry Subsystem

    June 26, 2007 - 0 Comment
  • VSAM Control Interval and Control Area

    June 23, 2007 - 0 Comment
  • VSAM Catalogs

    June 20, 2007 - 0 Comment
  • VSAM Introduction

    June 18, 2007 - 0 Comment
  • Mainframe Features

    June 17, 2007 - 0 Comment
  • Mainframes Computers

    May 27, 2007 - 0 Comment
  • Introduction to JCL

    November 8, 2006 - 0 Comment
  • Customer Information Control System (CICS)

    July 25, 2006 - 0 Comment
  • CICS Components and Transactions

    June 18, 2006 - 0 Comment
  • CICS Overview and Functions

    June 18, 2006 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • JES : Job Entry Subsystem
  • VSAM Control Interval and Control Area
  • VSAM Catalogs
  • VSAM Introduction
  • Mainframe Features

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2023. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT