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

syncpoint in cursor


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
EnjoyMF

New User


Joined: 27 May 2005
Posts: 88

PostPosted: Fri May 27, 2005 3:28 pm
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
jkbytes

Active User


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

PostPosted: Sat May 28, 2005 11:05 am
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
No new posts Restart logic by using cursor name in... DB2 1
No new posts Seeking Resolution for SQKCODE -991 o... DB2 2
No new posts Multiple rows within Cursor when Coun... DB2 14
No new posts Dynamic cursor name in Cobol program COBOL Programming 1
Search our Forums:

Back to Top