i have 2 files both the same format and length (1000 bytes)
File A was created yesterday
File B is created today. I want to compare the entire file content (all 1000 bytes) and if there is any change in the values to write the record lines to an output file. This file may also contain new record lines that don't exist in File A - these lines must also be written to the output file. The output file will contain all 1000 bytes from File B if a difference is found.
so basically i only want to identify a change in data between days and identify new entrants - and then create a file with this data only in the same format (1000 bytes)
I have researched on this forum and can see examples where i should use the following syntax:
//SYSIN DD *
JOIN KEYS = 01,FIELDS=(1,1000,CH)
JOIN KEYS = 02,FIELDS=(1,1000,CH)
REFORMAT FIELDS = (F1:1,1000,F2:1,1000)
SORT FIELDS = COPY
JOIN UNPAIRED,F1,F2
JOIN KEYS = 01,FIELDS=(1,1000,CH)
JOIN KEYS = 02,FIELDS=(1,1000,CH)
REFORMAT FIELDS = (F1:1,1000,F2:1,1000)
SORT FIELDS = COPY
JOIN UNPAIRED,F1,F2
but i don't understand how JOIN UNPAIRED works or what the syntax is to create the output file.
Can you also confirm if the above syntax is correct as there was some disagreement in the forum.
Thanks
Michelle
Code'd