Presentation is loading. Please wait.

Presentation is loading. Please wait.

Three file matching Please use speaker notes for additional information!

Similar presentations


Presentation on theme: "Three file matching Please use speaker notes for additional information!"— Presentation transcript:

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

2 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 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

4 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

5 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

6 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

7 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

8 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

9 3 file match/merge file1sng file2sng file3sng File ID1 < ID2 ID1 > ID3 Process file 3 Read file 3

10 3 file match/merge file1sng file2sng file3sng File ID1 < ID2 ID1 > ID3 ID1 = ID3 Process file 1 Read file 1

11 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

12 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

13 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

14 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

15 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

16 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

17 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

18 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

19 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

20 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

21 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

22 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

23 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

24 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

25 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

26 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


Download ppt "Three file matching Please use speaker notes for additional information!"

Similar presentations


Ads by Google