How to write a matched records and unmatched records in a different file in SORT.
Both input files to be compared with each record and the matched records needs to be writtten in one out file,and remaining un matched records to aonther file
Input and output of two files are FB,LRECL 80
File A has
F2010-06-16125ESB46066361
F2010-06-16125ESB77777777
F2010-06-16125ESB12345678
F2010-06-16125ESB23456789
F2010-06-16125ESB98765432
F2010-06-16125ESB77777777
F2010-06-16125ESB12345678
F2010-06-16125ESB23456789
F2010-06-16125ESB98765432
File B has
F2010-06-16125ESB46066361
F2010-06-16125ESB98765432
F2010-06-16125ESB55555555
F2010-06-16125ESB23456789
F2010-06-16125ESB66666666
F2010-06-16125ESB12345678
F2010-06-16125ESB98765432
F2010-06-16125ESB55555555
F2010-06-16125ESB23456789
F2010-06-16125ESB66666666
F2010-06-16125ESB12345678
Output should be
matched records outfile
F2010-06-16125ESB46066361
F2010-06-16125ESB12345678
F2010-06-16125ESB23456789
F2010-06-16125ESB98765432
F2010-06-16125ESB12345678
F2010-06-16125ESB23456789
F2010-06-16125ESB98765432
un matched records outfile
F2010-06-16125ESB77777777
F2010-06-16125ESB55555555
F2010-06-16125ESB66666666
F2010-06-16125ESB55555555
F2010-06-16125ESB66666666
Please help!