IEHPROGM Utility in JCL |
Agenda.
- Introduction.
- What is IEHPROGM utility in JCL?
- IEHPROGM utility examples.
- Conclusion.
Introduction.
IBM mainframe is one of the oldest and most secure computing platforms. Most of the enterprise applications still run on Mainframe. The mainframe is the backbone of business computing.
IBM has supplied many mainframe tools and utilities such as IEHPROGM, IDCAMS, IEFBR14, IEBGENER, etc to facilitate programmers to complete there day to day tasks. You can easily invoke these JCL utilities by JCL. Let's deep dive into the IEHPROGM utility in JCL and learn different ways to accomplish day-to-day work.
What is IEHPROGM Utility in JCL?
In laymen's terms, the IEHPROGM utility in JCL is a system utility that is supplied by IBM. IEHPROGM utility is used to modify system key data and to manage data sets at an organizational level.
The IEHPROGM utility in JCL is used essentially to handle catalogs, rename data sets, and delete data sets. However, most of the IEHPROGM functions are available by IDCAMS. The IDCAMS utility (i.e. Access method services is the preferred utility for catalog and data set functions.
The IEHPROGM is a system program and you must have relevant access in place to trigger the IEHPROGM utility via JCL.
You can use the JCL IEHPROGM utility for the following task.
- To delete a data set or a partitioned data set member.
- To rename a data set or a partitioned data set member.
- To manage data set passwords.
The following examples represent some of the uses of the JCL IEHPROGM utility. You can use the following table as a swift reference guide to IEHPROGM.
IEHPROGM Function.
- LIST, REPLACE
- RENAME
- RENAME, DELETE, ADD
- RENAME, UNCATLG, CATLG
- SCRATCH
- SCRATCH, UNCATLG
- UNCATLG
Now, let's deep dive into the IEHPROGM utility example to understand the function of the IEHPROGM utility in JCL.
IEHPROGM Utility Example.
#1. IEHPROGM RENAME.
In this IEHPROGM example, a PDS member will be renamed.
//TPRCK99A JOB 'TOPICTRICK',MSGCLASS=A,CLASS=C,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//STEP01 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=*
//DD1 DD VOL=SER=3390,DISP=OLD,UNIT=DISK
//SYSIN DD *
RENAME VOL=DISK=3390,DSNAME=TP.PDS.COBB,
NEWNAME=NABC,MEMBER=OABC
/*
The control statements are explained below:
- DD1 DD represents a permanently mounted volume.
- SYSIN DD determines the input data set, which follows in the input stream.
- RENAME defines that member OABC in the partitioned data set will be renamed to NABC.
#2. IEHPROGM SCRATCH.
//TPRCK99A JOB 'TOPICTRICK',MSGCLASS=A,CLASS=C,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=*
//DD2 DD UNIT=disk,VOLUME=SER=3390,DISP=SHR
//SYSIN DD *
SCRATCH VTOC,VOL=disk=3390,SYS
/*
The control statements are explained as follows:
- The DD2 statement describes a volume.
- The SCRATCH statement, with SYS named, indicates that all temporary system data sets.
Conclusion.
Finally, this marks an end to the "IEHPROGM utility in JCL" session. In this session, you learned what is IEHPROGM utility is and why it is an important JCL utility. You also learned the different examples of the JCL IEHPROGM utility example. Lastly, what is the difference between the static calls vs dynamic calls in COBOL? Do check out COBOL LEVEL 88 Condition.
►Subscribe to Topictrick & Don't forget to press THE BELL ICON to never miss any updates. Also, Please visit mention the link below to stay connected with Topictrick and the Mainframe forum on -
► Youtube
► Facebook
► Linkedin
► Reddit
Thank you for your support.
Mainframe Forum™
No comments:
Post a Comment