Strovent SystemsSign in
Reference

z/OS space abends B37, D37 and E37 (IEC030I, IEC031I, IEC032I): data set out of space

B37, D37 and E37 mean a data set ran out of space: no secondary space, too many extents, a full volume or a full PDS. Compress the PDS or reallocate it larger.

A job or an ISPF save ends with system abend B37, D37 or E37, often shown as SB37, SD37 or SE37. All three mean that a data set needed more space than it could get. Each comes with a message that names the data set, the volume and a return code, usually -04.

What each one means

  • D37 (IEC031I D37-04): the data set used all of its primary space, and no secondary space was asked for when it was allocated. It cannot grow at all.
  • B37 (IEC030I B37-04): the data set needed another extent and could not get one. Usually the volume is full, or the data set already has the most extents allowed on a volume: 16 for basic format and PDS data sets, 123 for extended format and PDSE. It can also be the track limit (65,535 tracks per volume for basic format and PDS), or a full VTOC.
  • E37 (IEC032I E37-04): the data set used all the space it could get on its volumes. For a PDS, which stays on one volume, this means it filled all its space or used 16 extents.

A PDS that keeps filling up

In a PDS, space is not reused by itself. When you replace a member, for example by saving it in ISPF Edit, the new copy is written to free space and the old copy stays where it was. A deleted member's space is also kept. Only a compress gives that space back.

To compress, use ISPF option 3.1 (Library utility), enter the data set name and the option C. ISPF runs the IEBCOPY utility for you. Batch jobs can run IEBCOPY directly.

A PDSE reuses space from deleted and replaced members automatically, so it never needs a compress; ISPF's compress option does not work on one. If a PDS fills up often, a PDSE is an alternative.

Give the data set more room

If a compress is not enough, or it is not a PDS:

  1. Allocate a new, larger data set with ISPF 3.2, with a bigger primary quantity and a secondary quantity, so it can grow.
  2. Copy the data or members into it, with ISPF 3.3 for example.
  3. Delete or rename the old one, then rename the new one to the old name.

For a batch job, change the SPACE parameter on the DD statement: add a secondary quantity for D37, or a larger primary quantity so fewer extents are needed for B37. If the volume itself is full, choose another volume or ask the storage team.

Sources

Spotted a mistake? Email [email protected].