Calculate total space allocated for file

If file is having space parm as SPACE=(CYL,(10,10)) i.e. 10 primary, 10 secondary. So how much cylinders totally it will take before dataset filled till end?

Questions by avinash_geek

Showing Answers 1 - 12 of 12 Answers

arun442

  • Aug 17th, 2008
 

In such case, the primary space which is 10 in this case used until it is finished then secondary memory(10) is stated to use, but secondary memory can be used 150 times, hence 150+10 =160 is total space available on the cylinder.

dhs01

  • Apr 15th, 2009
 

Almost correct, VSAM and non-VSAM are important but equally important is whether the allocation is to SMS controlled dasd. Another factor to consider is that allocations can both get more and less than 10 cylinders. In some cases an extent will be combined with other extents depending on physically where the extents are. (ie you could get 6 allocations of 10 cylinders but it would be 1 extent...) Another factor is that you can use up to 3 extents to get either the primary or secondary quantity. (in this case you might only get 40 cylinders and be out of extents...). So the short answer is that you can't say without a lot more information.

  Was this answer useful?  Yes

The traditional answer is (primary+(secondary*15)) or 10+150=160.

This question isn't relevant beyond testing the most basic MVS knowledge.  The reason is that products such as SMS, STOP37, etc will often override the space designation.

If SMS is defined, there will often be no SPACE parm coded.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions