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 

Ways to know what records have been UPD/DEL/INS in VSAM

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


Joined: 08 Jun 2004
Posts: 2
Topics: 1
Location: Toronto, Canada

PostPosted: Tue Jun 08, 2004 10:38 am    Post subject: Ways to know what records have been UPD/DEL/INS in VSAM Reply with quote

Good morning. I have this project, where I need to get some records from some VSAM datasets.

My problem es that those datasets could be really cumbersome, so, I am figuring out a way to extract only the records that have been updated, inserted o deleted.

I have been reading, and using the key or the RBA could be a way to do this. Any other suggestion is more than welcome.

On the other hand. What about getting those changes real time ? Is it possible without have to be intrusive ? I mean, without having to capture SVCs or things like that.

I really appreciate your help.

Francisco
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Jun 08, 2004 11:03 am    Post subject: Reply with quote

Francisco,

What kind of vsam file are we talking? Records can be deleted from KSDS and RRDS. You cannot delete records from ESDS and LDS. You can update the records in ESDS,KSDS,RRDS but with certain limitations.

I don't think RBA will be useful in this case unless it is an ESDS or RRDS. The RBA can change in KSDS.

The simplest way I can think of is add another VSAM File as Log file. So when ever you perform any operation(ADD/DELETE/UPDATE) on the target file , you will simply write into the LOG vsam File with approriate action code (A - ADD, D - Delete U - Update). This Log file can be can be an ESDS.

At the end of the day you can copy the contents of this LOG file into a GDG and empty out the logfile for the next day transactions.

Hope this helps...

Cheers

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


Joined: 08 Jun 2004
Posts: 2
Topics: 1
Location: Toronto, Canada

PostPosted: Tue Jun 08, 2004 4:35 pm    Post subject: Reply with quote

Sounds great Kolusu, I am going to give it a try to see how it works.

One final thing. This log file basically is going to contain all the full records modified?deleted, etc Very Happy ?
_________________
Francisco Lopez
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jun 09, 2004 5:31 am    Post subject: Reply with quote

pacholopezr,

Yes you are right , the log file will contain all the records which are added/updated/deleted from your main file along with an Indicator flag of action.

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


Joined: 04 Dec 2002
Posts: 71
Topics: 0
Location: Little Falls, NJ

PostPosted: Tue Jun 22, 2004 2:37 pm    Post subject: Reply with quote

VSAM supports a journal exit. You could write such an exit and assign it to this cluster. All updates will be passed to the journal exit where you can record them somewhere else for later processing.
_________________
Bruce A. Black
Senior Software Developer
Innovation Data Processing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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