View previous topic :: View next topic
|
Author |
Message |
kvsumar
New User
Joined: 09 Mar 2008 Posts: 6 Location: bangalore
|
|
|
|
i have 2 sequential files. File1 contains old backup data and File2 contains latest backup data. I want to compare both files and move to output file3.
The above process should not use Merge command. They will be no Date, Time, Column information in File1 and File2.
Their requirement was that in File3 the latest backup data should be moved.
And How to read File1 and File2 while taking first record of File1 and comparing it to the whole records of File2? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please start over and more clearly post your question(s).
Explain why having no date, time, etc could be an issue comparing the files.
Explain what tools you are permitted to use to do what needs to be done.
Your last line should be rethought - there is almost never a good reason to compare records from one file against every record of another file. |
|
Back to top |
|
|
kvsumar
New User
Joined: 09 Mar 2008 Posts: 6 Location: bangalore
|
|
|
|
Hi,
My question is,
File1 contains old data and File2 contains new data. I want to compare this files and move the latest data to File3 using cobol and without using merge command.
Thanks
Kumar |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Near the top of the COBOL section of the forum, there is a "Sticky" about how to implement a 2-file match/merge. Download that sample code, review it, and reply back here if you have any questions. |
|
Back to top |
|
|
|