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: 1042
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Calling an Open C library function in... CICS 1
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top