MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to track the changes in a VSAM file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
devpal
Beginner


Joined: 06 Jul 2004
Posts: 14
Topics: 8

PostPosted: Tue Aug 10, 2004 10:31 am    Post subject: How to track the changes in a VSAM file Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12366
Topics: 75
Location: San Jose

PostPosted: Tue Aug 10, 2004 11:15 am    Post subject: Reply with quote

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 - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
devpal
Beginner


Joined: 06 Jul 2004
Posts: 14
Topics: 8

PostPosted: Tue Aug 10, 2004 4:00 pm    Post subject: Reply with quote

Thank you very much Kolusu. Your solution provides the answer to my problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group