Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extent allocation in sequential data sets

I am new to mainframe world and trying to work it up but unable to get one thing that how are extents allocated in data sets.

And please can someone explain it using an example or answer this question

Suppose there is a sequential data sets where primary and secondary are both allocated 1 track. How many times can this data set request for extent ? Is the extent allotted to both primary and secondary or only secondary?

And one last question

How does setting or not setting guaranteed space attribute in storage class effects the no of extents that can be requested ?

Thank You

like image 440
Ronit Saha Avatar asked Oct 07 '22 06:10

Ronit Saha


People also ask

How many extents are possible for a sequential file?

A sequential data set can have 16 extents on each volume. An extended-format sequential data set can have 123 extents per volume.

What are extents in mainframe?

An extent is a contiguous number of disk drive tracks, cylinders, or blocks. Data sets can increase in extents as they grow. Older types of data sets can have up to 16 extents per volume. Newer types of data sets can have up to 128 extents per volume or 255 extents total on multiple volumes.

What is extended-format dataset?

Extended-format datasets are implicitly LARGE and can exceed 65,535 tracks, but more importantly, you can get up to 123 extents per volume, offering a few clear advantages. For one, an extended-format data set allows you to fail with anOut-Of-Space error much less often, but it can also be striped.


1 Answers

Sequential Data Allocation

A sequential data set with primary and secondary of 1 track each will be able to have 16 extents if it is allocated with one volume

//stepname EXEC PGM=IEFBR14  
//ddname   DD   DSN=dataset,
//     DISP=(NEW,CATLG),   
//     UNIT=SYSALLDA,SPACE=(TRK,(1,1))
/*

The above will allocate a dataset that can be 16 tracks big if extend by being written too.

If you replace SYSALLDA with (SYSALLDA,2) it will be able to use 2 volumes so can be 32 tracks of size across 2 volumes

The number of volumes can be overridden by the DATACLASS which can be assigned to an SMS managed datasets

Guaranteed space

Guaranteed space allows you to specify the actual volumes that a dataset will be allocated on when the allocation is SMS controlled, normally SMS will pick the volumes based on the ACS routines

The below jcl will allocate dataset on volume VOL001 if storage class has the DCGSPAC attribute

//stepname EXEC PGM=IEFBR14  
//ddname   DD   DSN=dataset,
//     DISP=(NEW,CATLG),vol=ser=VOl001,   
//     STORCLAS=GSPACE,
//     UNIT=SYSALLDA,SPACE=(TRK,(1,1))
/*

Normally the SMS routines are coded so that only specific users or jobs are allowed to use storage classes with Guaranteed Space

Explanation of Storage Class

like image 149
Deuian Avatar answered Oct 10 '22 03:10

Deuian