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.
Release: All supported releases.
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.
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
;
GENERATE DMCL dmcl_name;
PUNCH DMCL LOAD MODULE dmcl_name;
FORMAT FILE segment_name.file_name;