Modernization Hub

Extend

Dataset Extension
Enhanced Definition

Dataset extension is the process of increasing the allocated storage space for an existing dataset on an IBM z/OS system. This operation allows a dataset to accommodate more data when its current primary or secondary allocations are exhausted, preventing data truncation or job failures. It is a critical function for managing data growth and ensuring continuous operation of applications.

Key Characteristics

    • Dynamic vs. Static: Datasets can be extended dynamically by the operating system during program execution (e.g., when a sequential file is opened for output and more space is needed), or statically by utilities or JCL.
    • Secondary Allocation: Most datasets are defined with a primary and secondary space allocation (SPACE=(TRK,(primary,secondary))). When the primary space is full, z/OS automatically allocates secondary extents up to a defined limit.
    • Multi-Volume Datasets: Datasets can extend across multiple physical or logical volumes (DASD units) if defined as multi-volume, allowing for very large files.
    • Dataset Types: Applicable to various dataset organizations, including sequential (PS), partitioned (PO), partitioned extended (PDSE), and VSAM (KSDS, ESDS, RRDS).
    • Catalog Update: The system catalog (e.g., ICF Catalog) is automatically updated to reflect the new extent information and volume locations for the extended dataset.
    • Extent Limit: There is a system-defined limit to the number of extents a dataset can have on a single volume (typically 16) and across all volumes (typically 255 for non-VSAM, more for VSAM).

Use Cases

    • Log and Spool Files: Extending SYSOUT datasets, application logs, or system logs that continuously grow, preventing B37 or D37 abends.
    • Database Files: Increasing the size of DB2 table spaces, IMS databases, or VSAM files (KSDS, ESDS) as the volume of transactional data expands.
    • Sequential Data Accumulation: Appending new records to a sequential master file or transaction file that has reached its current space limit.
    • Program Libraries (PDSE/PDS): Adding new members or increasing the size of existing members in program load libraries or source code libraries.
    • Temporary Work Files: Allowing temporary datasets (DD DSN=&&TEMP) used by utilities or applications to grow as needed during complex processing.

Related Concepts

Dataset extension is intrinsically linked to Dataset Allocation, which defines the initial space. It is managed through JCL DD statements, specifically the SPACE parameter, and influenced by Storage Management Subsystem (SMS) policies (Data Class, Storage Class, Management Class) which dictate where and how datasets are allocated and extended. For VSAM datasets, the IDCAMS ALTER command is used for explicit extension. It directly impacts Volume Management as it consumes free space on DASD volumes and can lead to Dataset Fragmentation if not managed efficiently.

Best Practices:
  • Monitor Space Usage: Regularly monitor dataset space utilization using utilities like DFSMSrmm, ISPF 3.4, or third-party tools to anticipate extension needs and prevent abends.
  • Appropriate Secondary Allocation: Define a reasonable secondary space allocation (SPACE=(TRK,(primary,secondary))) in JCL to allow for automatic growth and minimize manual intervention.
  • Leverage SMS: Utilize SMS data classes to define appropriate space parameters, retention, and volume selection rules, automating and optimizing dataset extension.
  • Avoid Excessive Extents: Datasets with many small extents can degrade I/O performance. Periodically reorganize or reallocate datasets with a high number of extents to consolidate space.
  • Consider RLS for VSAM: For critical VSAM datasets, enabling Record Level Sharing (RLS) can improve availability and allow for more flexible space management without exclusive locks.
  • Backup Before Major Changes: Always ensure critical datasets are backed up before performing significant manual extensions or reorganizations.

Related Vendors

ASE

3 products

IBM

646 products

Broadcom

235 products

Beta Systems

27 products

Related Categories

Compression

49 products

Printing and Output

158 products

IMS

154 products

UNIX and Windows

141 products