MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lose cursor position then goback from a DL/1 subprogram

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
powerhawk
Beginner


Joined: 08 Nov 2004
Posts: 28
Topics: 4
Location: Stockholm

PostPosted: Wed Apr 13, 2005 4:25 am    Post subject: Lose cursor position then goback from a DL/1 subprogram Reply with quote

I declare and open a cursor in a DB2 database. After some fetch I call a subprogram reading a DL/1 database. When the subprogram terminates the PSB a syncpoint is done. And the syncpoint make the calling program losing the cursor position and I have to declare a new cursor to come back to the earlier row in the DB2 database.
Do anyone know a method to avoid this?
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Apr 13, 2005 7:26 am    Post subject: Reply with quote

powerhawk,

Try declaring your cursor with 'WITH HOLD' option. Check this link for a detailed explanation of WITH HOLD

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH10/2.2.2.2?SHELF=&DT=20010209162045&CASE=

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group