The procedure and syntax required to do an EXTEND SPACE in IDMS
search cancel

The procedure and syntax required to do an EXTEND SPACE in IDMS

book

Article ID: 24352

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

The procedure to do an EXTEND SPACE is documented at Extending the Page Range of an Area. This document provides sample syntax required to implement this procedure.

Environment

Release: All supported releases.

Resolution

Assume the area currently has 15000 pages and it is to be extended it to 20000. This is the procedure and sample syntax required to do an EXTEND SPACE on the area.

  1. Use OCF or IDMSBCF to alter the MAXIMUM SPACE to 20000, add a new file and extend space by 5000 pages. Changing the MAXIMUM SPACE requires a separate ALTER AREA statement.

    ALTER PHYSICAL AREA segment_name.area_name
    MAXIMUM SPACE 20000 PAGES
    ;

    CREATE
    FILE segment_name.file_name
    ASSIGN TO ddname
    DSNAME 'dataset-name'
    NONVSAM
    ;

    ALTER PHYSICAL AREA segment_name.area_name
    EXTEND SPACE 5000 PAGES
    WITHIN FILE file_name
    FROM 1 FOR ALL BLOCKS
    ;
     
  2. Generate, punch, and link all DMCLs that contain the segment with which the area is associated. IDMSBCF syntax is:

    GENERATE DMCL dmcl_name;
    PUNCH DMCL LOAD MODULE dmcl_name;
     
  3. Allocate a new database file to contain the additional pages and initialize the file using the new DMCL. IDMSBCF syntax is:

    FORMAT FILE segment_name.file_name;
     
  4. Make a backup of the area.
     
  5. Make the DMCLs and the new file available to the IDMS CV environment (DCMT VARY DMCL NEW COPY or cycle the CV).