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

db2 cursor name


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lineesh_kumar

New User


Joined: 20 Feb 2006
Posts: 6

PostPosted: Thu Jul 01, 2010 9:16 pm
Reply with quote

Hi,

I have 4 cursor which will be executing depending on the condition.

Now I have like

evaluate true
when 1 open cursor1
when 2 open cursor2
when 3 open cursor3
when 4 open cursor4
end

Instead can I use like open ws-cursor, set the ws-cursor in working storage with 4 88 levels of cursor1, cursor2 etc . I will set the 88 level before the opening of the cursor. I know this is some kind of dynamic processing. But is there a way for doing this?

Responses are appreciated.

Regards
Lineesh
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 01, 2010 9:48 pm
Reply with quote

the syntax of the declare cursor, open cursor, close cursor and fetch cursor do not allow for the cursor name to be contained in/ or the value of a w-s variable.

if you have 4 cursors, you will need four declare/open/fetch/close cursor db2 api calls.
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 -> COBOL Programming

 


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