Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
syncpoint in cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions
Author Message
EnjoyMF

Active User


Joined: 27 May 2005
Posts: 92

PostPosted: Fri May 27, 2005 3:28 pm    Post subject: syncpoint in cursor
Reply with quote

Hi all

if in a cics db2 table i try to update the tables (ie some 1000 rows to be updated)i use the cursor to fetch the row and update that

but the question is as the WITH HOLD option is not used & as commit or sync point is not issued ( as cursor is closed if syncpoint is used) ..what happens to the updated rows if any abend occurs...


Thanks
prasad
Back to top
View user's profile Send private message
References
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 142
Location: South Africa

PostPosted: Sat May 28, 2005 11:05 am    Post subject:
Reply with quote

Hi Prasad,

As far as the criteria that you have mentioned ie. you didn't use a with hold in the cursor def and you din't issue a COMMIT.

The result is that thew changes you have requested will be rolled back to the previous syncpoint.

If you have issued a commit, then all the work will be saved when it comes across a COMMIT, and your cursor will be closed and a syncpoint will be established, but unless you have defined it with a WITHHOLD option your cursor wont be closed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Interview Questions All times are GMT + 6 Hours
Page 1 of 1