vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
Superc with long listing provides both the matched and difference records,
if we have a SORT step to omit unwanted(insertions/deletions) records then we would have only the matched records in output,
A crude test job,
Code: |
//SUPERC EXEC PGM=ISRSUPC,
// PARM=(LONGL,LINECMP,
// '',
// '')
//NEWDD DD DSN=WELLS.NEWFILE,
// DISP=SHR
//OLDDD DD DSN==WELLS.OLDFILE,
// DISP=SHR
//OUTDD DD DSN=WELLS.SUPERC.LIST,DISP=OLD
//*
//JS010 EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=WELLS.SUPERC.LIST
//SORTOUT DD DISP=OLD,DSN=WELLS.MATCHING.LINES
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OMIT COND=((1,5,SS,EQ,C' ID '),OR,
(1,5,SS,EQ,C' D - '),OR,
(1,5,SS,EQ,C' I - '),OR,
(1,5,SS,EQ,C'1 IS'),OR,
(1,5,SS,EQ,C' NEW:'),OR,
(1,36,CH,EQ,C' '),OR,
(1,36,CH,EQ,C' LISTING OUTPUT'),OR,
(1,25,CH,EQ,C' ----+----1----+----2'))
/* |
I am open to corrections |
|