11.01.2013 Views

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

ABCs of z/OS System Programming Volume 3 - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.9 IEHLIST utility<br />

//VTOCLIST JOB ...<br />

//STEP1 EXEC PGM=IEHLIST<br />

//SYSPRINT DD SYSOUT=A<br />

//DD2 DD UNIT=3390,VOLUME=SER=SBOXED,DISP=SHR<br />

//SYSIN DD *<br />

LISTVTOC VOL=3390=SBOXED,INDEXDSN=SYS1.VTOCIX.TOTTSB<br />

/*<br />

Figure 4-13 IEHLIST utility<br />

Using IEHLIST<br />

IEHLIST is a system utility used to list entries in the directory <strong>of</strong> one or more partitioned data<br />

sets or PDSEs, or entries in an indexed or non-indexed volume table <strong>of</strong> contents. Any number<br />

<strong>of</strong> listings can be requested in a single execution <strong>of</strong> the program.<br />

Listing a PDS or PDSE directory<br />

IEHLIST can list up to ten partitioned data set or PDSE directories at a time.<br />

The directory <strong>of</strong> a partitioned data set is composed <strong>of</strong> variable-length records blocked into<br />

256-byte blocks. Each directory block can contain one or more entries that reflect member or<br />

alias names and other attributes <strong>of</strong> the partitioned members. IEHLIST can list these blocks in<br />

edited and unedited format.<br />

The directory <strong>of</strong> a PDSE, when listed, will have the same format as the directory <strong>of</strong> a<br />

partitioned data set.<br />

Listing a volume table <strong>of</strong> contents (VTOC)<br />

IEHLIST can be used to list, partially or completely, entries in a specified volume table <strong>of</strong><br />

contents (VTOC), whether indexed or non-indexed. The program lists the contents <strong>of</strong> selected<br />

data set control blocks (DSCBs) in edited or unedited form.<br />

Chapter 4. Storage management s<strong>of</strong>tware 121

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!