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 

VSAM rollback

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Thu Jul 29, 2004 2:10 pm    Post subject: VSAM rollback Reply with quote

Hi,
I have a program-b which is called by program-a. Program-a passes the data to program-B to validate and to update 5 vsam files. Incase if there is a problem when writing to the 5th VSAM file, will I be able to rollback the changes made to the first 4 files? If so, could you please tell me how to acheive this.
Thanks,
KRK123.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Jul 29, 2004 3:05 pm    Post subject: Reply with quote

Quote:

I have a program-b which is called by program-a. Program-a passes the data to program-B to validate and to update 5 vsam files. Incase if there is a problem when writing to the 5th VSAM file, will I be able to rollback the changes made to the first 4 files? If so, could you please tell me how to acheive this.


krk123,
If you are running these programs in BATCH then you CANNOT rollback. However the new Transactional VSAM offers the ability for VSAM data to be shared for both read and write operations while maintaining integrity and recoverability. Transactional VSAM allows logging of changes to recoverable VSAM data sets. Batch programs can use commit and backout functions.

Check this link for manuals of Transactional Vsam

http://www.mvsforums.com/helpboards/viewtopic.php?t=2544&highlight=transactional+vsam

If you are runninng in CICS then the Inserts/Updates/Deletes are NOT Committed until you exclusively issue a Syncpoint. So if you abnormally terminate all the changes are rolled back.

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
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Thu Jul 29, 2004 3:25 pm    Post subject: Reply with quote

Hi Kolusu,
thanks a lot for the reply. Sorry for the incomplete info. Both the programs are running in CICS region. I have seen other cics programs where they are not issuing a explicit syncpoint. Does it mean that after the end of the call an implicit syncpoint is issued ?
If its not much of trouble for you, can you please provide a link on rollback in CICS for VSAM.
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 -> CICS and Middleware 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