Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

commit/rollback in cics

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: commit/rollback in cics
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    Post subject: Hi
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us