by jois » Thu Jul 24, 2014 2:50 pm
Hi Magesh,
I already solved it . Pls. see below.
You're really an ANGEL, thanks a bunch!!!
Hi BillyBoyo,
Your suggestions, really helped.. Thanks so much.
/*
//SORTOUT DD DUMMY
//OUT1 DD DSN=ACCT1.XXXXXXX.OUT1.SORTC,
// UNIT=SYSDA,SPACE=(TRK,(1,1)),DISP=(MOD,CATLG,DELETE)
//OUT2 DD DSN=ACCT1.XXXXXXX.OUT2.SORTC,
// UNIT=SYSDA,SPACE=(TRK,(1,1)),DISP=(MOD,CATLG,DELETE)
//SYSIN DD *
SORT FIELDS=COPY
INREC IFTHEN=(WHEN=INIT,OVERLAY=(81:SEQNUM,9,ZD)),
IFTHEN=(WHEN=(1,4,CH,EQ,C'9999'),
OVERLAY=(81:+1,SUB,81,9,ZD,M11,LENGTH=9))
OUTFIL NULLOFL=RC4,
INCLUDE=(1,4,CH,EQ,C'9999',AND,06,9,ZD,EQ,81,9,ZD)
OUTFIL FNAMES=OUT1,
IFTHEN=(WHEN=(1,4,CH,EQ,C'9999',AND,06,9,ZD,NE,81,9,ZD),
BUILD=(1:C'LOG FILE ERROR',/,
C'PROGRAM CC705 CONTAINS MISMATCH',/,
C'DIFFERENCE IS ',(06,9,ZD,SUB,81,9,ZD),
EDIT=(STTTTTTTTT),SIGNS=(,))),
INCLUDE=(1,4,CH,EQ,C'9999',AND,06,9,ZD,NE,81,9,ZD)
OUTFIL FNAMES=OUT2,
BUILD=(1:1,60),
INCLUDE=(1,4,CH,NE,C'9999')
/*