DIRCOMPR - PDS or PDSE Directory Compare Utility

                 

DIRCOMPR is an MVS utility program to compare PDS and/or PDSE directories. Using DIRCOMPR, an OS/390 or z/OS installation can compare libraries for duplicate members in partitioned data sets, PDS and/or PDSE.

DIRCOMPR can compare up to 32 directories at a time and the libraries can be source and load libraries, this way you can see the existence of duplicate and location of these modules.

DIRCOMPR produces several reports, including a cross-reference of duplicate members, i.e. members found with the same name in several sub-libraries.

Running DIRCOMPR

The DIRCOMPR Utility runs as a batch job step in the MVS environment. The PARM statement gives the directive on how these libraries are compared as in the example below.

DD Statements

DIRCOMPR uses the following DD statements:

  1. SYSPRINT is used to write the reports.
  2. LIB1 through LIB32 DDs are used to describe the libraries to be compared.

Sample JCL

//DIRCOMPR JOB (ACCT#),DIRCOMPR,                                        
// NOTIFY=&SYSUID,                                                      
// CLASS=A,MSGCLASS=H                                                   
//JOBLIB   DD DSN=PRISMCS.LOCAL.EXITLIB,DISP=SHR                        
//         DD DSN=GSFSOFT.PRISM-CS.LOAD,DISP=SHR                        
//********************************************************************* 
//*                                                                   * 
//*                 DIRECTORY COMPARE UTILITY                         * 
//*                                                                   * 
//*     SUPPORTS DDNAMES LIB1 THROUGH LIB32.                          * 
//*                                                                   * 
//*     ONE OF THE FOLLOWING OPTIONS MAY BE SPECIFIED IN THE          * 
//*     PARM TO REDUCE THE SIZE OF THE SIDE-BY-SIDE LISTING:          * 
//*                                                                   * 
//*          DUPL          MEMBERS FOUND IN MORE THAN ONE LIBRARY     * 
//*          NODUPL        MEMBERS ONLY FOUND IN ONE LIBRARY          * 
//*          ALLLIBS       MEMBERS FOUND IN ALL LIBRARIES             * 
//*          NOTALLLIBS    MEMBERS NOT FOUND IN ALL LIBRARIES         * 
//*          N             ALL MEMBERS IN LIB1-N                      * 
//*                                                                   *
//*     YOU MUST OVERRIDE THE SYSPRINT LRECL IF YOU USE               *
//*     LIB13 THROUGH LIB32.                                          *
//*                                                                   *
//*********************************************************************
//DIRCOMPR EXEC PGM=DIRCOMPR,PARM=DUPL                                 
//LIB1     DD DSN=CARLOS.D.BRPGMOD,DISP=SHR  
//LIB2     DD DSN=CARLOS.TEST.LOAD,DISP=SHR  
//LIB3     DD DSN=CARLOS.LOAD,DISP=SHR                             
//SYSPRINT DD SYSOUT=*                                                 

Sample Output (SYSPRINT)

 
GSF Utilities - Directory Compare Program - R103    Saturday 13 Oct 2012
DDNAME(LIB1) IS ALLOCATED TO DSNAME=CARLOS.D.BRPGMOD,VOL=3380=WORK0B    
DDNAME(LIB2) IS ALLOCATED TO DSNAME=CARLOS.TEST.LOAD,VOL=3380=TEMPR     
DDNAME(LIB3) IS ALLOCATED TO DSNAME=CARLOS.LOAD,VOL=3380=WORK0A         
                    490 MEMBERS (TOTAL)                                 
                    478 UNIQUE NAMES                                    
                    466 MEMBERS FOUND IN 1 LIBRARY                      
                     12 MEMBERS FOUND IN 2 LIBRARIES                    
                      0 MEMBERS FOUND IN ALL 3 LIBRARIES                
                     12 MEMBERS PRINTED IN SIDE-BY-SIDE LIST BELOW (PARM
GSF Utilities - Directory Compare Program - R103    Saturday 13 Oct 2012
      CARLOS    CARLOS    CARLOS                                        
      D         TEST      LOAD                                          
      BRPGMOD   LOAD                                                    
1     AC00201   . . . .   AC00201                                       
2     . . . .   COMPARE   COMPARE                                       
3     . . . .   DISASM    DISASM                                        
4     . . . .   LINKMAP   LINKMAP                                       
5     . . . .   LM        LM                                            
6     . . . .   QJB2CBL2  QJB2CBL2                                      
7     . . . .   QPAM      QPAM                                          
8     . . . .   QPAM1     QPAM1                                    
9     RPGSAMP   . . . .   RPGSAMP                                  
10    RPGTEST3  . . . .   RPGTEST3                                 
11    . . . .   SCANPDS   SCANPDS                                  
12    . . . .   XREFMVS   XREFMVS                                  
      3         9         12         MEMBERS PRINTED (PARM="DUPL") 
 

Search key-words: mvs os/390 z/os os390 zos vse z/VSE zVSE dos/vse iccf DIRCOMPR Compare directory libraries member pds pdse