Date Last Reviewed:
03/15/2007
Use LISTPDS instead of IEBPTPCH, when you want to list pds members in alphabetical order in MVS.
LISTPDS is an utility program for listing and/or punching pds members. The program also generates formatted listings of the pds's directory in alphabetical order.
IBM supplied IEBPTPCH will order the pds members by TTR, not by alphabetical order. (MVT version was locally modified)
We, therefore, recommend that you utilize LISTPDS in MVS, when you want the alphabetical listing of pds members.
| Sample JCL | |
|---|---|
| //LIST JOB | valid jobcard |
| /*JOBPARM R=n,L=nnn | |
| //STEP EXEC PGM=LISTPDS,PARM=parameter | |
| //SYSPRINT DD SYSOUT=A | (required: file will contain formatted listing of pds's directory) |
| //SYSLIST DD SYSOUT=A | (optional: file will contain formatted listings of pds's members) |
| //SYSPUNCH DD SYSOUT=B | (optional: file will contain punched card images of members) |
| //SYSLIB DD DSN=dataset,etc. | (required: name of the pds to be processed by listpds program. If members are to be selected only one library can be specified. If all members are to be processed, multiple libraries can be specified by concatenation) |
| //SYSIN DD * | (optional: file contains cards which specifies the name of members to be processed) |
| member1,member2, ... | names of the members to be processed |
| /* |
Cataloged procedure for LISTPDS program is PDSLIST. It can be invoked by:
| //STEP1 | EXEC | PDSLIST |
|---|---|---|
| //SYSUT1 | DD | DSN=dataset,etc |
Options for LISTPDS can be specified through PARM= in EXEC card. Default options in capital
| LIST/nolist | print out members or not |
| deck/NODECK | punch out members with iebupdte ADD cards before each member or not |