View previous topic :: View next topic |
Author |
Message |
krk123 Beginner
Joined: 03 Jun 2003 Posts: 58 Topics: 19
|
Posted: Thu Jul 29, 2004 2:10 pm Post subject: VSAM rollback |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Jul 29, 2004 3:05 pm Post subject: |
|
|
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 |
|
|
krk123 Beginner
Joined: 03 Jun 2003 Posts: 58 Topics: 19
|
Posted: Thu Jul 29, 2004 3:25 pm Post subject: |
|
|
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 |
|
|
|
|