IEBCOMPR

IEBCOMPR is  JCL utility , it is used for comparing the  PDS or PS information

a. How to compare two PS files

//STEP1            EXEC PGM=IEBCOMPR

//SYSPRINT    DD SYSOUT=*

//SYSOUT        DD SYSOUT=*

//SYSUT1         DD DSN=MMTS.SRIDHAR.TEST.PS,DISP=SHR

//SYSUT2         DD DSN=MMTS.SRIDHAR.TEST.PS1,DISP=SHR

//SYSIN DD *

     COMPARE  TYPORG=PS

/*

b.How to compare the two  pds datasets

//STEP2           EXEC PGM=IEBCOMPR

//SYSPRINT   DD SYSOUT=*

//SYSOUT       DD SYSOUT=*

//SYSUT1        DD DSN=MMTS.SRIDHAR.TEST.PDS,DISP=SHR

//SYSUT2       DD DSN=MMTS.SRIDHAR.TEST.PDS1,DISP=SHR

//SYSIN DD *

   COMPARE  TYPORG=PO

/*