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: 964
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 ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


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