Skip to content
Datasets & storage

Space allocation

Reserving disk space for a dataset up front, in tracks, cylinders or blocks, with room to grow.

Also written SPACE, primary and secondary space, allocation

On z/OS, a dataset is given space when it is created rather than growing freely as you write to it. You state a primary amount, which is reserved immediately, and a secondary amount, which is added if the primary fills up.

The units come from disk geometry. A track is the smallest, a cylinder is a group of tracks, fifteen on traditional devices, and you can also allocate in blocks or records and let the system convert. Cylinders are the usual choice for anything sizeable.

Secondary allocation is the safety net, and a dataset can extend a limited number of times before it runs out. A job failing because a dataset could not extend is one of the most common batch problems there is, and the fix is usually a larger primary or secondary amount.

Space is also released when a dataset is closed if you ask for it, which avoids leaving large empty allocations behind. Sites often have standards for how much to allocate, precisely because getting this wrong is so easy.

Browse all 115 terms

Learn this properly.

Use Space allocation for real in Mainframe101, in your browser, with Zed beside you. Join the waitlist.

Early access and updates. No spam, unsubscribe any time.