|
Entire document Available as PDF |
Table of Contents
The utility PDSLIST prints the contents of a Partitioned Data Set (PDS) and/or generates a PDS directory status report. Print operations and status reports can be customized with optional keywords. The JCL in Figure 2 invokes a
directory status report which lists the number of directory blocks allocated, number of blocks actually used, total main members, total number of member aliases, and the average number of entries per directory block.
To generate the directory status report described above, invoke the PDSLIST cataloged procedure as in the example below. is the name of the cataloged partitioned data
set.data.set.name
Two commands verbs, LIST and PRINT, are used with PDSLIST. Minimum abbreviations are shown below in parentheses.
(L) LISTLIST
operations produce directory information.
(P) PRINTPRINT operations print the contents of individual members or groups of
members.
The following are optional keywords. When applicable, minimum abbreviations are shown in parentheses. An equal sign indicates that a dd name, data set name, option or other value must be supplied.
specifies that only the firstn lines of each member selected by the PRINT and PREFIX options are to be printed. Useful for browsing through a program library. This keyword does not apply to the LIST option.
identifies the ddname which defines the PDS to be processed. SYSLIB is the default ddname.
identifies the name of the data set. Not necessary if the dsname is already coded in the JCL.
identifies the options below chosen for current run of PDSLIST.
indicates that the status of the data set directory is to be printed. The names of members will not be printed unless you use the PRINT command.
indicates that member names, alias names, and TTR (member addresses) are to be listed.
indicates that SSI (System Status Indicator) and stow information are to be printed with the member and alias names.
indicates that member contents are to be printed in both a character and vertical hexadecimal format, rather than in just character format.
specifies that the 1-43 character index of all data sets on the volume be processed.
specifies that the 1-8 character prefix of all members in a PDS be processed.
In Figure 2, SYSLIB identifies the data set to be processed. "SYSLIB" is the default ddname. The actual ddname can be supplied by SYSIN. SYSIN identifies the control data set (optional).
Figure 6. Sample PDSLIST Program
//jobnameJOB (,,time,lines),'your name',CLASS=class/*ROUTE PRINTnode.location// EXEC PGM=PDSLIST //SYSPRINT DD SYSOUT=A //SYSLIB1 DD DSN=SYS1.USERLIB,DISP=SHR //SYSLIB2 DD DSN=SYS1.MACLIB,DISP=SHR //SYSLIB3 DD DSN=SYS1.PROCLIB,DISP=SHR //SYSIN DD * LIST DDN=SYSLIB1,OPTIONS=NAMES,PREFIX=IEE PRINT DDN=SYSLIB2,OPTIONS=NAMES PRINT DDN=SYSLIB3,OPTIONS=ALL,PREFIX=VSF
The sample program in Figure 3 will perform the following functions:
All member names that begin with IEE will be listed along with their addresses and alias names for the data set SYS1.USERLIB.
The contents of all members of SYS1.MACLIB will be printed.
The contents of all members whose names begin with VSF will be printed along with any directory user data fields present for those members in data set SYS1.PROCLIB.
Only RECFM F or FB card image records are supported by the PRINT command.
An entire disk pack can be searched for a particular member by coding both INDEX and PREFIX keywords.
Only columns 1-72 of the input control statements are scanned. Columns 73-80 are ignored but can be used for sequence numbering or other identification. The entire statement, however, is reproduced in the output listing.