Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: RE: Release quantity that was allocated via LIKE= subparm

$
0
0
Author: steve-myers
Posted: Sat May 20, 2017 2:20 pm (GMT 5.5)

RLSE as specified in the DD statement SPACE parameter is not a data set attribute.

In order for space release to occur through JCL two things must happen.
  • You must specify RLSE on the DD statement AND
  • the program that uses the DD statement MUST open the data set for output

In this JCL --
Code:
//CREATE  EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  -- Input data --
//SYSUT2   DD  DISP=(NEW,CATLG),...,SPACE=(CYL,(50,20)),DSN=---
//SYSIN    DD  DUMMY
//RLSE    EXEC PGM=IEBGENER
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  DUMMY,DCB=---
//SYSUT2   DD  DISP=MOD,SPACE=(CYL,(0,0),RLSE),DSN=---
//SYSIN    DD  DUMMY

The CREATE step builds a data set, but it does not free unused space at the end of the data set. The RLSE step frees the unused space. It can be run as a step in a different job run after the job that created the data set.
  • In the SYSUT1 DD statement the DCB parameter specifies a data set that has the same DCB attributes as the data set you are freeing space. This ensures IEBGENER will not accidentally alter the DCB attributes of the data set specified by the SYSUT2 DD statement. The data set can be the same data set specified by the SYSUT2 DD statement.
  • In the SYSUT2 DD statement, DISP=MOD directs data management to add additional data to the end of the data set.


Viewing all articles
Browse latest Browse all 8500

Trending Articles