Saturday, 10 August 2013

JCL IEHPROGM Utility.

IEHPROGM is a system utility that is used to modify system control data and to maintain data sets at an organizational level.
IEHPROGM should only be used by those programmers who are locally authorized to do so. IEHPROGM does not support dynamic UCBs while processing data sets that are password-protected.

You can use IEHPROGM to perform the following tasks:
  •  Scratch (delete) a data set or a member of a partitioned data set.
  • Rename a data set or a member of a partitioned data set.
  • Maintain data set passwords.
You must have RACF authority in order to use IEHPROGM. IDCAMS is recommended for use with SMS managed data sets.
Example 1: Scratch Temporary System Data Sets
In this example, all temporary system data sets are scratched from the volume table of contents.
//SCRVTOC JOB ...
//STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=A
//DD2 DD UNIT=disk,VOLUME=SER=222222,DISP=OLD
//SYSIN DD *
SCRATCH VTOC,VOL=disk=222222,SYS
/*
The control statements are discussed below:
The DD2 statement defines a volume. Because the system residence volume is not referred to, a DD statement is needed to define it.
The SCRATCH statement, with SYS specified, indicates that all temporary system data sets whose expiration dates have expired are scratched from the specified volume.
Example 7: Rename a Partitioned Data Set Member

In this example, a member of a partitioned data set is renamed.

//REN JOB ...
//STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=A
//DD1 DD VOL=SER=222222,DISP=OLD,UNIT=disk
//SYSIN DD *
RENAME VOL=disk=222222,DSNAME=DATASET,NEWNAME=BC,MEMBER=ABC
/*


Created with Artisteer

No comments:

Post a comment