Three file matching Please use speaker notes for additional information!

26
Three file matching Please use speaker notes for additional information!

Transcript of Three file matching Please use speaker notes for additional information!

Three file matching

Please use speaker notes for additional information!

ID1 > ID2

ID2 > ID3

Processfile 3

Readfile 3

ID2 = ID3

Processfile 2

Processfile 3

Readfile 2

Readfile 3

Processfile 2

Readfile 2

ID1 = ID2

ID1 > ID3

Processfile 3

Readfile 3

ID1= ID3

Processfile 1

Processfile 2

Processfile 3

Readfile 1

Processfile 1

Processfile 2

Readfile 2

Readfile 3

Readfile 1

Readfile 2

3 file match/merge3 file match/merge

ID1 < ID2next page

3 file match/merge3 file match/merge

ID1 < ID2

ID1 > ID3

Processfile 3

Readfile 3

ID1 = ID3

Processfile 1

Processfile 3

Readfile 1

Readfile 3

Processfile 1

Readfile 1

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

ID1 = ID2

ID1 > ID3

ID1= ID3

Processfile 1

Processfile 2

Processfile 3

Readfile 1

Readfile 2

Readfile 3

File123

111100111010111001

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

ID1 = ID2

ID1 > ID3

ID1= ID3

Processfile 1

Processfile 2

Processfile 3

Readfile 1

Readfile 2

Readfile 3

File123

111100111010111001222200222020222002

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003

ID1 > ID2

ID2 > ID3

ID2 = ID3

Processfile 2

Processfile 3

Readfile 2

Readfile 3

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003333300333000333033

ID1 = ID2

ID1 > ID3

ID1= ID3

Processfile 1

Processfile 2

Processfile 3

Readfile 1

Readfile 2

Readfile 3

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003333300333000333033444400444040

ID1 = ID2

ID1 > ID3

ID1= ID3

Processfile 1

Processfile 2

Readfile 1

Readfile 2

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003333300333000333033444400444040500005

ID1 < ID2

ID1 > ID3

Processfile 3

Readfile 3

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003333300333000333033444400444040500005555500

ID1 < ID2

ID1 > ID3

ID1 = ID3

Processfile 1

Readfile 1

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003333300333000333033444400444040500005555500666600666060666006

ID1 = ID2

ID1 > ID3

ID1= ID3

Processfile 1

Processfile 2

Processfile 3

Readfile 1

Readfile 2

Readfile 3

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003333300333000333033444400444040500005555500666600666060666006777070777007

ID1 > ID2

ID2 > ID3

ID2 = ID3

Processfile 2

Processfile 3

Readfile 2

Readfile 3

The read of file2sng is unsuccessful so 999 is moved to ID2

3 file match/merge3 file match/merge

file1sng

111100222200333300444400555500666600888800

file2sng

111010222020300030333000444040666060777070

file3sng

111001222002300003333033500005666006777007880008

File123

111100111010111001222200222020222002300030300003333300333000333033444400444040500005555500666600666060666006777070777008888800880008

The read of file3sng is unsuccessful so 999 is moved to ID3

ID1 < ID2

ID1 > ID3

ID1 = ID3

Processfile 1

Processfile 3

Readfile 1

Readfile 3The read of file1sng

is unsuccessful so 999 is moved to ID1

ID2 is 999

Read file 1

Readfile 2

Read file 3

3 file with multiple per id

3 file with multiple per id

ID1 > ID2

ID2 > ID3

Id3 -> holdidId3 -> holdid

ID1 > ID3

Id1 -> holdid Id3 -> holdid

3 file with multiple per id

3 file with multiple per id ID1 > ID2

ID2 > ID3

ID2 = ID3

ID2 = holdid

Readfile 3

Add amt3 to tot amt

Set up rec

write

id3 ->holdid 0 -> tot amt

Readfile 3

Readfile 3

Add amt3 to tot amt

ID3 = holdid

Readfile 2

Add amt 2 & amt3 to tot amt

Set up rec

write

id2 ->holdid 0 -> tot amt

Readfile 3

Readfile 2

Add amt 2 & amt3 to tot amt

ID2 = holdid

Readfile 2

Add amt 2 to tot amt

Set up rec

write

id2 ->holdid 0 -> tot amt

Readfile 2

Add amt 2 to tot amt

checkID1 = ID2next page

ID1 = ID2

ID1> ID3

ID1 = holdid

Readfile 3

Add amt3 to tot amt

Set up rec

write

id3 ->holdid 0 -> tot amt

Readfile 2

Readfile 3

Add amt3 to tot amt

ID3 = holdid

Readfile 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

Readfile 3

Read file 2

Read file 1

Read file 3

ID1 = holdid

Readfile 2

Readfile 1

Add amt1 & amt2 to tot amt

Set up rec

write

id1 ->holdid 0 -> tot amt

Readfile 2

Readfile 1

Add amt1 & amt2 to tot amt

ID1 = ID2ID1 = ID2

ID1 <ID2next page

ID1 < ID2ID1 < ID2

ID1> ID3

Readfile 3

Add amt3 to tot amt

Set up rec

write

id3 ->holdid 0 -> tot amt

Readfile 3

Add amt3 to tot amt

ID3 = holdid

ID1 < ID2

ID1 = holdid

Readfile 3

Readfile 1

Add amt1 & amt3 to tot amt

Set up rec

write

id1 ->holdid 0 -> tot amt

Add amt1 & amt3 to tot amt

ID1 = ID3

Readfile 3

Readfile 1

Readfile 1

Add amt1 to tot amt

Set up rec

write

id1 ->holdid 0 -> tot amt

Readfile 1

Add amt1 to tot amt

ID1= holdid

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)ID1 = ID2

ID1> ID3

ID1 = holdid

Readfile 2

Readfile 1

Add amt1 & amt2 & amt3 to tot amt

ID1 = ID3

Readfile 3

holdid

111

total amount

11 12 22

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)ID1 = ID2

ID1> ID3

ID1 = holdid

Readfile 2

Readfile 1

Add amt1 & amt2 & amt3 to tot amt

ID1 = ID3

Readfile 3

holdid

111

total amount

11 12 22 23 33 44

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)holdid

111

total amount

11 12 22 23 33 44 54

ID1> ID3

ID1 < ID2

ID1 = ID3

Readfile 1

Add amt1 to tot amt

ID1= holdid

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)holdid

111

total amount

11 12 22 23 33 44 54

ID1 = ID2

ID1> ID3

Set up rec

write

id3 ->holdid 0 -> tot amt

Readfile 3

Add amt3 to tot amt

ID3 = holdid

1110054

holdid

112

total amount

012

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)holdid

112

11100541120012

total amount

012

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

0 22446

Read file 3

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)holdid

222 ID1 > ID2

ID2 > ID3

ID2 = ID3

ID2 = holdid

Readfile 2

Add amt 2 to tot amt

total amount

0 22446 68

ID1 > ID2

ID2 > ID3

ID2 = ID3

ID2 = holdid

Set up rec

write

id2 ->holdid 0 -> tot amt

Readfile 2

Add amt 2 to tot amt

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)holdid

222

111005411200122220068

total amount

0 22446 68

holdid

300

total amount

0 3

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 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

Readfile 3

Readfile 1

1110054112001222200683000003

total amount

3

holdid

333

total amount

0 336

file1mulID1|amt1

111011111001111010222002333003333033444004555055600006666600666060666006

file2mulID2|amt2

111001111010222022222222300003444004444040444444555006666006666060777007

file3mulID3|amt3

111110111011112012222022333033333303444404666606666060

3 file (0 - multiple per id)3 file (0 - multiple per id)holdid

333ID1> ID3

ID1 < ID2

ID1 = holdid

ID1 = ID3

total amount

0 3366972

Readfile 3

Readfile 1

Add amt1 & amt3 to tot amt