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.
//LISTPDIR JOB ...
//STEP1 EXEC PGM=IEHLIST
//SYSPRINT DD SYSOUT=A
//DD1 DD UNIT=diskB,VOLUME=REF=SYS1.NUCLEUS,DISP=OLD
//DD2 DD UNIT=diskA,VOLUME=SER=222222,DISP=OLD
//SYSIN DD *
LISTPDS DSNAME=D42.PDSE1,VOL=diskA=222222
LISTPDS DSNAME=(D55.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 D42.PDSE1 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 D55.PART1 and D55.PART2 are to
be listed. The listing is in edited format. These data sets exist
on the system residence volume.
Figure 1 shows an unedited entry for a partitioned member. Figure 1 shows an edited entry.