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
 

 

syncpoint in cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    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

jkbytes

Active User


Joined: 19 Feb 2005
Posts: 141
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am


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