IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Confused over Extents allocation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
barthwalsamarth

New User


Joined: 03 Aug 2006
Posts: 9

PostPosted: Wed May 14, 2008 11:42 am
Reply with quote

I was going through a text which says "Extent is contiguous memory location. Only 16 extents are possible for a physical sequential dataset in a volume"
That means
Total Space = 1*primary + 15 *secondary so a total of 16.

Now next thing mentioned is "Primary and secondary space request has to be met within 5 extents" What does this mean then?
Also if I code
Code:
(SPACE=TRKS,(100,100))
then what will be the size of each extent?

Please help with this allocation concept.

Thnaks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 14, 2008 11:45 am
Reply with quote

Quote:
(SPACE=TRKS,(100,100))


It means that the 100 tracks specified will be allocated in one extent if sufficient contiguous space exists, if not, the 100 tracks can be allocated in up to 5 seperate extents.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed May 14, 2008 11:48 am
Reply with quote

Hi,
see linkhttp://ibmmainframes.com/viewtopic.php?t=26006&highlight=space+gerry


Gerry
Back to top
View user's profile Send private message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 199
Location: india

PostPosted: Wed May 14, 2008 11:57 am
Reply with quote

barthwalsamarth wrote:

Now next thing mentioned is "Primary and secondary space request has to be met within 5 extents" What does this mean then?


It means that 500 Tracks were allocated for the code:
Code:
SPACE=TRKS,(100,100)


barthwalsamarth wrote:

Also if I code
Code:
(SPACE=TRKS,(100,100))
then what will be the size of each extent?


Well the size of track depends on the Device Type
For eg.

1.) For the DEVICE TYPE = 3390 number of bytes in one TRACK is 56664 BYTES.

2.) For the DEVICE TYPE = 3390 number of TRACKS in one CYLINDER is 15 TRACKS.

3.) BLOCKS are INDEPENDENT of the device type but it depends on the input files DCB parameter.

I hope this helps,

Regards,
Rajat
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 14, 2008 12:09 pm
Reply with quote

Quote:
It means that 500 Tracks were allocated for the code:
Code:
SPACE=TRKS,(100,100)

NO it does not. Please read the previous responses before giving wrong information.
Back to top
View user's profile Send private message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 199
Location: india

PostPosted: Wed May 14, 2008 12:09 pm
Reply with quote

Hi expact,

expat wrote:
Quote:
(SPACE=TRKS,(100,100))


It means that the 100 tracks specified will be allocated in one extent if sufficient contiguous space exists, if not, the 100 tracks can be allocated in up to 5 seperate extents.


Well expact i think if one extent is not sufficient then the 100 tracks can be allocated in up to 4 seperate extents.

Please let me know if I am wrong...

Regards,
Rajat
Back to top
View user's profile Send private message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 199
Location: india

PostPosted: Wed May 14, 2008 12:10 pm
Reply with quote

Ok ,

I got the answer
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed May 14, 2008 12:11 pm
Reply with quote

Hi,
by the way SPACE=TRKS will give you a JCL error it should be TRK


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 14, 2008 12:14 pm
Reply with quote

What I am saying is ...........

If there is an area of free space that is greater than or equal to 100 tracks, then the 100 track space request will be satisfied in one physical extent of 100 tracks in size.

If not, the operating system will then see if the 100 tracks can be allocated in up to five extents, and if so allocate the space request in up to five extents.

So 100 tracks can be made up of 50 tracks + 30 tracks + 20 tracks - 3 extents
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed May 14, 2008 7:55 pm
Reply with quote

The same goes for the 2ndary space, but the max extents allowed for a single vol DS is 16. So using expats example of a 5 extent primary, you are limited to 11 2ndary extents max. If you need more than 1 extent for any 2ndary the max is reduced further.

BTW, if you alloc across multi vols you get 16 additional 2ndary extents on each vol after the 1st. Same rules apply.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Dynamic file allocation using JCL JCL & VSAM 8
No new posts ISPF 3.4 edit of a ps file, disp use... TSO/ISPF 3
No new posts Enterprise PL/I - dynamic allocation ... PL/I & Assembler 1
No new posts VSAM Space Allocation JCL & VSAM 7
Search our Forums:

Back to Top