IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

commit/rollback in cics


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rashmi.ranjan75

New User


Joined: 20 Feb 2006
Posts: 34

PostPosted: Thu Apr 06, 2006 9:52 pm
Reply with quote

Hi,

Please help me to understand the following scenario:

There is C program containing DB2 (sql) and CICS commands.
I do some operation and then comes out of program with the following statement in case of some error
exit(3)

Will CICS call a commit or rollback.

Let me know if u want more description

Regards
Rashmi
Back to top
View user's profile Send private message
Jag

New User


Joined: 07 Dec 2005
Posts: 30
Location: India

PostPosted: Sat Apr 08, 2006 11:11 am
Reply with quote

Hi,
Unless the program Completes succcessfully...The changes made will not be commited..

If you want to commit the changes..You should isse a syncpoint externally.


Exec Cics
syncpoint
End-Exec.

As the programs is abending the Program commits the changes till the last sync point...


Cheers,
JAG
Back to top
View user's profile Send private message
rashmi.ranjan75

New User


Joined: 20 Feb 2006
Posts: 34

PostPosted: Mon Apr 10, 2006 1:06 pm
Reply with quote

Hi,

You are right that unless i call syncpoint cics will not commit but currently something like this happening in my program (suspected)

somewhere in my program due to some failure my program comes out by simply executing the statement exit(3); there is no abend occured.

Now what i can see from my data this transaction is commiting data even after the last syncpoint.

So could you please explain if my suspecion is right.

Regards
Rashmi
Back to top
View user's profile Send private message
balusengodan

New User


Joined: 01 Mar 2005
Posts: 15
Location: chennai

PostPosted: Tue Apr 11, 2006 4:48 pm
Reply with quote

hi
u are right unless otherwise u 'r going to issue syncpoint command it is not possible to commit the changes
balu.a
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top