Previous Topic: Example 2—Use of DSNNAME ParameterNext Topic: Example 4—Compare Member Names


Example 3—Find Selected Proclib Data Sets

Scan all of the online volumes to find all proclib data sets, as identified by their data set names. Produce both the MVD report data for these data sets and a cross-reference of the procs that are duplicates (same names) in two or more of the libraries.

//jobname JOB (acct,info),etc.
//         EXEC DMS
//SYSIN     DD  *
SCAN REALVOLS
SELECT VOL=/,DSN=(!PROCLIB!)
REPORT MVD,PO2,COMPONENTS

This list indicates that any data set name that ends with PROCLIB is to be processed. Since only non-VSAM data sets are being searched for, the COMPONENTS parameter was added to speed up processing.