I have two input files TEST.INPUT.FILE1 and TEST.INPUT.FILE2.
My requirement is to write a JCL that perform the following
(a) If first 8 bytes of records in file TEST.INPUT.FILE1 is similar to first 8 bytes of any records in file TEST.INPUT.FILE2, write those matched records from file TEST.INPUT.FILE1 to an output file TEST.OUTPUT.FILE1.
(b) If first 8 bytes of records in file TEST.INPUT.FILE1 is not similar to first 8 bytes of any records in file TEST.INPUT.FILE2, write those unmatched records from file TEST.INPUT.FILE1 to an output file TEST.OUTPUT.FILE2.
Contents of TEST.INPUT.FILE1 and TEST.INPUT.FILE2 are as below
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Sasanka,
If you have DFSORT, you can use a DFSORT job like the following to do what you asked for. I assumed your input files have RECFM=FB and LRECL=80, but the job can be changed appropriately for other attributes.