The requirement is to compare two files. The first record of the file (columns to compared 1-83,lRECL 91) has to be compared with all the records of second file (same columns to be compared, LRECL 91). If the record is in second file, but not in first file , then it should be written in to the output file.
Please let me know whether it can be done thru SuperC /File AID . The shop doesn't have comparex.
NB: I have tried SUPERC Line Compare option. It does not give the excepted results as it was Line Compare . Let me know if other option in SUPERC can be used to get the above requirement
SuperC ( line compare option) compares first record(value 8) of first file with first record (value 7) of second file. Then second record (6) with second record(5). The last compare 2 with 8. 8 is written to final output file ( Using sort step to get only I's(Insert))
But requirement is first record(value 8) of first file should compare with all records so last record (value 8) and 8 should not be written to out put file .7,5,3 to be only written to outputfile as it is not found anywhere in first file.
Try below JCL, which compare using COMPAREX utility
//COMP EXEC COMPAREX,IN1='TEST.xxxx.inp1,
MAXDIFF=50,CONTINUE /* REPORT 50 DIFFERENCES BUT COMPARE ALL
FORMAT=23 /* FULL ALPHA SYSUT1, DIFF LINES ON SYSUT2
PAGE=72 /* 72 LINES PER PAGE
CASE=MIXED /* PRINT LOWER CASE CHARACTERS
MLC=1 /* IN SYNC AGAIN AFTER MATCHING 1 LINE
DATA /* INTER-RECORD RELATIONSHIP
MBRHDR=COND /* PERFORM A PAGE EJECT ONLY WHEN A DIFFERENCE