View previous topic :: View next topic |
Author |
Message |
devpal Beginner
Joined: 06 Jul 2004 Posts: 14 Topics: 8
|
Posted: Tue Aug 10, 2004 10:31 am Post subject: How to track the changes in a VSAM file |
|
|
Hi,
we are developing interfaces for transferring data through FTP. We need to transfer a VSAM master file everyday, which has got millions of records. The VSAM file has got no timesatmp or any date of creation of the record. WE have the date at which the record was last maintained. Currently our situation is that we have to transmit the entire file even if the changes have been made to only some records in it, because we do not have a timestamp to track the changed records in the existing system, while it would be sufficient to transmit ot transfer the changed records. Please can you provide me with any alternative solution? We thought of suing IEBCOMPR, but its a big file with about 80 fields and tracking the data would be difficult this way.
Regards,
DevPal. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Tue Aug 10, 2004 11:15 am Post subject: |
|
|
DevPal,
There are many ways to accomplish the task.
1. Repro the vsam cluster to a flat file( make it a GDG)
2. Compare the -1 gen to the current gen on the entire record length and capture all the Changed records to another flat file
3. FTP the output from step2.
Step 1 and 3 are self explanatory. For step2 , there are various utilities(DFSORT, EASYTRIEVE..) so on to compare 2 files.
Another alternative is to add a field at the end of the vsam cluster. So whenever a record is modified , the user need to update that field with an approriate value ( ex: A - for addition, D- for Delete , U - for update ...)
Now using this flag , you can extract the records to be FTP'ed
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
devpal Beginner
Joined: 06 Jul 2004 Posts: 14 Topics: 8
|
Posted: Tue Aug 10, 2004 4:00 pm Post subject: |
|
|
Thank you very much Kolusu. Your solution provides the answer to my problem. |
|
Back to top |
|
|
|
|