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
 

 

Variable in open cursor statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
manikant pathak

New User


Joined: 09 May 2005
Posts: 37
Location: bangalore

PostPosted: Tue Apr 08, 2008 2:13 pm    Post subject: Variable in open cursor statement
Reply with quote

Hi all,

Is it possible to have a variable name in the Open cursor statement?

Condition check.
Move <Cursor-name> to <Variable-name>

EXEC SQL
OPEN <Variable-name>
END-EXEC.


Any help on this will be greatly appreciated.

Regards,
MKP
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Tue Apr 08, 2008 5:14 pm    Post subject:
Reply with quote

You tried this before asking, right? What happened?

If anyone knows the answer, it is likely they tried it once, rather than just remembering what they read.
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 216
Location: India

PostPosted: Tue Apr 08, 2008 5:55 pm    Post subject: Re: Variable in open cursor statement
Reply with quote

manikant pathak wrote:
Hi all,

Is it possible to have a variable name in the Open cursor statement?

Condition check.
Move <Cursor-name> to <Variable-name>

EXEC SQL
OPEN <Variable-name>
END-EXEC.


Any help on this will be greatly appreciated.

Regards,
MKP


please try and let us know the results... icon_lol.gif
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm


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