View previous topic :: View next topic
|
Author |
Message |
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
In online programs, why we perform an
EXEC CICS SYNCPOINT ROLLBACK END-EXEC, for unsuccessful sqls?
Is it possible to replace it by EXEC SQL ROLLBACK END-EXEC,
Please guide what CICS SYNCPOINT ROLLBACK does? |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Quote: |
In online programs, why we perform an
EXEC CICS SYNCPOINT ROLLBACK END-EXEC, for unsuccessful sqls? |
EXEC SQL ROLLBACK will only rollback the database work done. Any other updates performed by CICS in the unit of work will not be rolled back.
EXEC CICS SYNCPOINT (ROLLBACK) performs a two-phase COMMIT (ROLLBACK) of all resources affected by the CICS unit-of-work.
Quote: |
Is it possible to replace it by EXEC SQL ROLLBACK END-EXEC, |
No, not if you value the integrity of your data.
Garry. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Is it possible to replace it by EXEC SQL ROLLBACK END-EXEC, |
Why do you believe this might be possible? |
|
Back to top |
|
|
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
Quote: |
Any other updates performed by CICS in the unit of work will not be rolled back. |
What are the possible CICS updates? Are they like file updates, TSQ, TDQs,resource definitions , Please mention other things. |
|
Back to top |
|
|
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
Dick
I understand that it is not possible to use EXEC SQL ROLLBACK, actually i am sure what are the CICS rolback does other than rolling back 'DB2 updation'. |
|
Back to top |
|
|
Susanta
Active User
Joined: 17 Nov 2009 Posts: 126 Location: India
|
|
|
|
Quote: |
actually i am sure what are the CICS rolback does other than rolling back 'DB2 updation'.
|
read as:
actually i am not sure what are the CICS rolback does other than rolling back 'DB2 updation'. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
|