View previous topic :: View next topic
|
Author |
Message |
rashmi.ranjan75
New User
Joined: 20 Feb 2006 Posts: 34
|
|
|
|
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 |
|
|
Jag
New User
Joined: 07 Dec 2005 Posts: 30 Location: India
|
|
|
|
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 |
|
|
rashmi.ranjan75
New User
Joined: 20 Feb 2006 Posts: 34
|
|
|
|
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 |
|
|
balusengodan
New User
Joined: 01 Mar 2005 Posts: 15 Location: chennai
|
|
|
|
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 |
|
|
|