# How to calculated maximum space using primary and secondary units

How to calculated maximum space using primary and secondary units Before I start my question, let me provide an example     How much total space be allowed for  SPACE=(TRK,(10,5))  I read somewhere during my training that the total units can be calculated by using the following formula Total units(Trks/blks/cyl)= Primary + 15 * Secondary. SPACE=(TRK,(10,5)) should occupy 85 Tracks  My question here is that whether the formula that I used is correct or not? and if it is correct, why do we use a factor 15 to multiply to the secondary “; ; ; ; (Reply to #3) #4

Janet, your explanation is good but misses out one small point. Many mainframe systems, if they can’t find the primary allocation as contiguous space, will try and get it in up to 5 extents before failing. As a corollary to this, if the systems takes, for example, 4 extents to allocate the primary space request, you only get 12 secondary extents as the maximum number of extents remains at 16. To use the example given by Krishna, this would give you a maximum of 10+(12*5) = 70 tracks – less than the 85 you would expect had the system found 10 contiguous tracks – before the system abends your job.

David,

You are correct there are only 16 extents total allowed no matter what the combination of the primary or secondary is allocated. In my experience of 30 years we always tried for the primary allocation to be the majority or all of the DSN size (quicker to read back in) and structured our data center in that way however, there were times when it couldn’t be done therefore the secondary allocation would be utilized. If the contiguous primary allocation couldn’t be found after the system checked all the pack pool then the job abended and the proper steps would be taken to either allocate a lower primary allocation of what continguous space was available(to get the job up and running), or add more packs to the pool. The secondary allocation was for growth of the DSN without having the job abend. Your point well taken. Thanks for the reminder!!