Interview Questions   Tutorials   Discussions   Programs   Discussion   

VSAM - Create syntax for a VSAM file ?




362
views
asked mar September 4, 2014 11:44 AM  

Create syntax for a VSAM file ?


           

1 Answers



 
answered By Mswami   0  

Following is the Syntax:

DEFINE CLUSTER
(NAME(entryname) 
{CYLINDERS(primary] secondary])  |
    RECORDS(primary[ secondary])  |
    TRACKS(primary[ secondary])}
VOLUMES(volser[ volser...]) 
[BUFFERSPACE(size)] 
[CONTROLINTERVALSIZE(size)]
[ERASE  |  NOERASE] 
[FILE(ddname)] 
[FREESPACE(CI-percent[ CA-percent]|0 0)] 
[IMBED  |  NOIMBED] 
[INDEXED  |  NONINDEXED  |  NUMBERED]
[KEYS(length offset|64 0)] 
[MODEL(entryname[/password][ catname[/password]])]
[RECORDSIZE(average maximum)] 
[REPLICATE  |  NOREPLICATE]
[REUSE  |  NOREUSE]
[SPEED  |  RECOVERY] 
[TO(date)  |  FOR(days)] 
[UNIQUE  |  SUBALLOCATION] 

[DATA 
([NAME(entryname)])

[INDEX
([NAME(entryname)])

[CATALOG(catname[/password])] 

The three main parameter lists that may be specified are grouped by CLUSTER, DATA, and INDEX. These lists of parameters apply to the CLUSTER as a whole, the DATA component of the cluster, and the INDEX component of the cluster.

The INDEX component is only present when a Key Sequenced cluster is being defined.

Almost all parameters that may be specified for the CLUSTER can also be specified individually for the DATA and INDEX components. But generally only parameter that is frequently supplied for the DATA and INDEX component is the NAME. Otherwise AMS will generate a non-intuitive name for that component of the cluster. The data component will be specified by adding .DATA as the suffix and index component will be denoted by adding .INDEX as the suffix to the name of the cluster.

We could use the DATA and INDEX components to separately specify the parameters for performance considerations where the INDEX and DATA components of the cluster could be split and placed on separate direct access storage volumes.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert