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_nameMAXIMUM SPACE 20000 PAGES;CREATEFILE segment_name.file_nameASSIGN TO ddnameDSNAME 'dataset-name'NONVSAM;ALTER PHYSICAL AREA segment_name.area_nameEXTEND SPACE 5000 PAGESWITHIN FILE file_nameFROM 1 FOR ALL BLOCKS;GENERATE DMCL dmcl_name;PUNCH DMCL LOAD MODULE dmcl_name;FORMAT FILE segment_name.file_name;