Three file matching Please use speaker notes for additional information!
ID1 > ID2 ID2 > ID3 Process file 3 Read file 3 ID2 = ID3 Process file 2 Process file 3 Read file 2 Read file 3 Process file 2 Read file 2 ID1 = ID2 ID1 > ID3 Process file 3 Read file 3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Process file 1 Process file 2 Read file 2 Read file 3 Read file 1 Read file 2 3 file match/merge ID1 < ID2 next page
3 file match/merge ID1 < ID2 ID1 > ID3 Process file 3 Read file 3 ID1 = ID3 Process file 1 Process file 3 Read file 1 Read file 3 Process file 1 Read file 1
3 file match/merge file1sng file2sng file3sng ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3 File
3 file match/merge file1sng file2sng file3sng ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3 File
3 file match/merge file1sng file2sng file3sng File ID1 > ID2 ID2 > ID3 ID2 = ID3 Process file 2 Process file 3 Read file 2 Read file 3
3 file match/merge file1sng file2sng file3sng File ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3
3 file match/merge file1sng file2sng file3sng File ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Read file 1 Read file 2
3 file match/merge file1sng file2sng file3sng File ID1 < ID2 ID1 > ID3 Process file 3 Read file 3
3 file match/merge file1sng file2sng file3sng File ID1 < ID2 ID1 > ID3 ID1 = ID3 Process file 1 Read file 1
3 file match/merge file1sng file2sng file3sng File ID1 = ID2 ID1 > ID3 ID1= ID3 Process file 1 Process file 2 Process file 3 Read file 1 Read file 2 Read file 3
3 file match/merge file1sng file2sng file3sng File ID1 > ID2 ID2 > ID3 ID2 = ID3 Process file 2 Process file 3 Read file 2 Read file 3 The read of file2sng is unsuccessful so 999 is moved to ID2
3 file match/merge file1sng file2sng file3sng File The read of file3sng is unsuccessful so 999 is moved to ID3 ID1 < ID2 ID1 > ID3 ID1 = ID3 Process file 1 Process file 3 Read file 1 Read file 3 The read of file1sng is unsuccessful so 999 is moved to ID1 ID2 is 999
Read file 1 Read file 2 Read file 3 3 file with multiple per id ID1 > ID2 ID2 > ID3 Id3 -> holdid ID1 > ID3 Id1 -> holdidId3 -> holdid
3 file with multiple per id ID1 > ID2 ID2 > ID3 ID2 = ID3 ID2 = holdid Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 3 Read file 3 Add amt3 to tot amt ID3 = holdid Read file 2 Add amt 2 & amt3 to tot amt Set up rec write id2 ->holdid 0 -> tot amt Read file 3 Read file 2 Add amt 2 & amt3 to tot amt ID2 = holdid Read file 2 Add amt 2 to tot amt Set up rec write id2 ->holdid 0 -> tot amt Read file 2 Add amt 2 to tot amt check ID1 = ID2 next page
ID1 = ID2 ID1> ID3 ID1 = holdid Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 2 Read file 3 Add amt3 to tot amt ID3 = holdid Read file 1 Add amt1 & amt2 & amt3 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 Read file 2 Read file 1 Read file 3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Read file 2 Read file 1 Add amt1 & amt2 to tot amt ID1 = ID2 ID1 <ID2 next page
ID1 < ID2 ID1> ID3 Read file 3 Add amt3 to tot amt Set up rec write id3 ->holdid 0 -> tot amt Read file 3 Add amt3 to tot amt ID3 = holdid ID1 < ID2 ID1 = holdid Read file 3 Read file 1 Add amt1 & amt3 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt3 to tot amt ID1 = ID3 Read file 3 Read file 1 Read file 1 Add amt1 to tot amt Set up rec write id1 ->holdid 0 -> tot amt Read file 1 Add amt1 to tot amt ID1= holdid
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) ID1 = ID2 ID1> ID3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 holdid 111 total amount
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) ID1 = ID2 ID1> ID3 ID1 = holdid Read file 2 Read file 1 Add amt1 & amt2 & amt3 to tot amt ID1 = ID3 Read file 3 holdid 111 total amount
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) holdid 111 total amount ID1> ID3 ID1 < ID2 ID1 = ID3 Read file 1 Add amt1 to tot amt ID1= holdid
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) holdid 111 total amount ID1 = ID2 ID1> ID3 Set up rec write id3 ->holdid 0 -> tot amt Read file 3 Add amt3 to tot amt ID3 = holdid holdid 112 total amount 0 12
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) holdid total amount 0 12 ID1 = ID2 ID1> ID3 ID1 = holdid ID1 = ID3 Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt2 & amt3 to tot amt Read file 2 Read file 1 holdid 222 total amount Read file 3
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) holdid 222 ID1 > ID2 ID2 > ID3 ID2 = ID3 ID2 = holdid Read file 2 Add amt 2 to tot amt total amount
ID1 > ID2 ID2 > ID3 ID2 = ID3 ID2 = holdid Set up rec write id2 ->holdid 0 -> tot amt Read file 2 Add amt 2 to tot amt file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) holdid total amount holdid 300 total amount 0 3
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) holdid 300 ID1> ID3 ID1 < ID2 ID1 = holdid Set up rec write id1 ->holdid 0 -> tot amt Add amt1 & amt3 to tot amt ID1 = ID3 Read file 3 Read file total amount 3 holdid 333 total amount
file1mul ID1|amt file2mul ID2|amt file3mul ID3|amt file (0 - multiple per id) holdid 333 ID1> ID3 ID1 < ID2 ID1 = holdid ID1 = ID3 total amount Read file 3 Read file 1 Add amt1 & amt3 to tot amt