Compare Datasets

How to get the mismatch data in dataset during comprision of two datasets of different length?

Questions by rahultiwari_mca

Showing Answers 1 - 3 of 3 Answers

We have to write JCL by using 'IEBCOMPR'.

FOR Sequential data set

//COMPSEQ EXEC PGM=IEBCOMPR
//SYSPRINT  DD SYSOUT=*
//SYSUT1     DD DSN=<DATA SET-1>,DISP=SHR
//SYSUT2     DD DSN=<DATA SET-1>,DISP=SHR
//SYSIN        DD DUMMY


FOR partitioned data set

//COMPDS EXEC PGM=IEBCOMPR
//SYSPRINT  DD SYSOUT=*
//SYSUT1     DD DSN=<DATA SET-1>,DISP=SHR
//SYSUT2     DD DSN=<DATA SET-1>,DISP=SHR
//SYSIN        DD *
COMPARE TYPORG=PO
/*


Note: The SYSPRINT output indicates weather the data sets are equal. If thet're not equal, the output tells you where they are not equal.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions