Saturday, 10 August 2013

JCL IEHLIST Utility | IBM IEHLIST Utility Example.


IBM Utility
JCL IEHLIST Utility


IEHLIST is a another important system utility used to list entries in the directory of one or more partitioned data sets or PDSEs, or entries in an indexed or non-indexed volume table of contents.


Any number of listings can be requested in a single execution of the program.


Example 1: List Partitioned Directories Using DUMP and FORMAT.


In this example, the directory of a PDSE is listed. In addition, the directories of two partitioned data sets that reside on the system residence volume are listed.

//RCLSTDR0 JOB (38912),‘R CHD',MSGCLASS=X,MSGLEVEL=(1,1),
//             CLASS=A,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEHLIST
//SYSPRINT DD SYSOUT=A
//DD1      DD UNIT=DISKA,VOLUME=REF=SYS1.NUCLEUS,DISP=OLD
//DD2      DD UNIT=DISKD,VOLUME=SER=222222,DISP=OLD
//SYSIN  DD *
  LISTPDS DSNAME=RC42.PDSE1.FLE,VOL=diskA=222222
  LISTPDS DSNAME=(RC55.PART1,D55.PART2),FORMAT
/*

The control statements are as follows:
  • DD1 DD defines the system residence device.
  • DD2 DD defines a device on which a disk volume (222222) is mounted.
  • SYSIN DD defines the control data set, which follows in the input stream. The first LISTPDS statement indicates that the PDSE directory belonging to data set RC42.PDSE1.FLE is to be listed. The listing is in unedited (dump) format. This data set resides on volume 222222.
  • The second LISTPDS statement indicates that partitioned data set directories belonging to data sets RC55.PART1 and D55.PART2 are to be listed. The listing is in edited format. These data sets exist on the system residence volume.
Example 2: List Non-indexed Volume Table of Contents

In this example, a non-indexed volume table of contents is listed in the first edited format. The edited listing is supplemented by an unedited listing of selected data set control blocks.

//RCLSTDR0 JOB (38912),‘R CHD',MSGCLASS=X,MSGLEVEL=(1,1),
//             CLASS=A,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEHLIST
//SYSPRINT DD SYSOUT=A
//DD2      DD UNIT=disk,VOLUME=SER=111111,DISP=OLD
//SYSIN    DD *
  LISTVTOC FORMAT,VOL=disk=111111
  LISTVTOC DUMP,VOL=disk=111111,DSNAME=(SET1,SET2,SET3)
/*

IEHLIST
Share IBM IEHLIST Utility Example. 

Created with Artisteer

No comments:

Post a Comment