Modernization Hub

DATACLAS - Data Class

Enhanced Definition

A Data Class (`DATACLAS`) is a component of the z/OS Storage Management Subsystem (SMS) that defines a set of attributes for a dataset, such as record format, record length, block size, space allocation, and retention period. It standardizes how datasets are defined and managed, externalizing these attributes from JCL. A Data Class (`DATACLAS`) is an IBM Storage Management Subsystem (SMS) construct that defines the physical attributes of a dataset, such as its record format, record length, block size, organization, and space allocation parameters. It provides a standardized way to specify these characteristics, promoting consistency and simplifying dataset management within a z/OS environment.

Key Characteristics

    • SMS Component: DATACLAS is one of the four primary constructs of SMS, working alongside Storage Class (STORCLAS), Management Class (MGMTCLAS), and Automatic Class Selection (ACS) routines.
    • Dataset Attributes: It specifies physical and logical attributes for datasets, including DSORG (Data Set Organization), RECFM (Record Format), LRECL (Logical Record Length), BLKSIZE (Block Size), SPACE allocation parameters, AVGREC (Average Record Length), and RETPD (Retention Period).
    • JCL Overrides: Attributes defined in a DATACLAS can override or be overridden by corresponding parameters specified in JCL, depending on the specific attribute and SMS configuration.
    • Centralized Management: DATACLAS definitions are centrally managed by storage administrators within the SMS configuration, promoting consistency and reducing errors.
    • Dynamic Assignment: Datasets can be assigned a DATACLAS explicitly in JCL via the DATACLAS parameter or implicitly by SMS ACS routines based on dataset name, program name, or other criteria.

Use Cases

    • Standardizing Dataset Creation: Ensuring all datasets for a specific application or data type (e.g., VSAM KSDSs, sequential files, PDS/PDSE libraries) adhere to predefined attributes without requiring explicit JCL coding for each.
    • Automating Space Allocation: Defining standard space allocation parameters (SPACE=(CYL,(10,5))) within a DATACLAS to simplify JCL and prevent out-of-space conditions by providing appropriate primary and secondary allocations.
    • Enforcing Data Retention: Specifying a RETPD (Retention Period) or EXPDT (Expiration Date) in a DATACLAS to automate the management of dataset longevity and ensure compliance with data retention policies.
    • Simplifying JCL: Reducing the complexity of DD statements in JCL by externalizing common DCB parameters and space allocations to a DATACLAS, making JCL easier to read and maintain.
    • Managing Different Dataset Types: Creating distinct DATACLAS definitions for various dataset organizations (e.g., DSORG=PS for sequential, DSORG=PO for PDS/PDSE, DSORG=VSAM for VSAM) to tailor attributes precisely.

Related Concepts

DATACLAS is a fundamental component of DFSMS (Data Facility Storage Management Subsystem), working in conjunction with STORCLAS (which defines performance and availability characteristics) and MGMTCLAS (which defines backup, migration, and retention policies). These three classes are assigned to datasets by ACS (Automatic Class Selection) routines, which are REXX programs executed by SMS. Together, they automate and standardize storage management, significantly simplifying JCL by externalizing many DD statement parameters and ensuring datasets are placed on appropriate storage with correct attributes and lifecycle management.

Best Practices:
  • Logical Grouping: Define DATACLAS objects logically based on application, data type, dataset organization, or common attribute requirements to promote reusability and clarity.
  • Descriptive Naming: Use clear and consistent naming conventions for DATACLAS objects (e.g., APPX.SEQ.FB80, VSAM.KSDS.PROD) to indicate their purpose and attributes.
  • Minimize JCL Overrides: Encourage developers to rely on DATACLAS definitions rather than overriding attributes in JCL, which can lead to inconsistencies and make troubleshooting harder.
  • Regular Review and Testing: Periodically review DATACLAS definitions to ensure they remain relevant and efficient, testing any changes thoroughly in non-production environments before deployment.
  • Documentation and Communication: Maintain comprehensive documentation of all DATACLAS definitions and communicate their availability and intended use to application developers and system programmers.

Related Vendors

ASE

3 products

IBM

646 products

Applied Software

7 products

Related Categories

Operating System

154 products

Encryption

41 products

Files and Datasets

168 products