I Have two flat files with LREC as 10. Fixed Block files. If account number matches then it should check status, if any mismatch in status then create an output file with account number and status field from both files.
Input File 1:
ACCT-Number Status
---------------- --------
111111111 A
222222222 C
333333333 A
555555555 P
Input File 2:
ACCT-Number Status
---------------- --------
111111111 A
222222222 A
333333333 A
444444444 P
555555555 S
666666666 R
OUTPUT
ACCT-Number Status from inputfile-1 Status from inputfile 2
---------------- --------------------------- -------------------------
222222222 C A
555555555 P S
Could any one help please me with SORT card for this...
Thanks,
Sudh