I HOPE TO GET THE FOLLOWING RESULT(ASSUMED THAT A2 AND A3 ARE THE VALUE OF ONE VARIABLE WS-DATA RESPECTIVELY, IF WS-DATA = A2 AND WS=DATA = A3 FOR THE SAME NUMBER(0100000), IN THE OUTPUT FILE , THE VALUE OF WS-DATA SHOULD BE A1)
. THANKS AHEAD.
You need to do a better job of explaining the "rules" for what you want to do. Do you only have one record in FileA and one record in FileB? If not, show a better example with more records showing all of the relevant cases. Also, give the RECFM and LRECL of each input file, and the starting position, length and format of each relevant field.