Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 965
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: 215
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us