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

Variable in open cursor statement


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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

Senior Member


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

PostPosted: Tue Apr 08, 2008 5:14 pm
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: 218
Location: India

PostPosted: Tue Apr 08, 2008 5:55 pm
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts variable in library name within a PROC. JCL & VSAM 11
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts MF professionals open positions Mainframe Jobs 0
No new posts CA7 count with DATE variable CA Products 0
No new posts Inserting into table while open selec... DB2 1
Search our Forums:


Back to Top