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
 

 

Can we Declare a Curosr in Procedure Division?

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

New User


Joined: 30 May 2008
Posts: 10
Location: Bangalore

PostPosted: Wed Jun 25, 2008 4:00 pm    Post subject: Can we Declare a Curosr in Procedure Division?
Reply with quote

Can we Declare a Curosr in Procedure Division?

Will it give an error if we do so?
Back to top
View user's profile Send private message

birdy K

New User


Joined: 05 Mar 2008
Posts: 72
Location: chennai

PostPosted: Wed Jun 25, 2008 4:15 pm    Post subject:
Reply with quote

Yes . We Can Declare
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jun 25, 2008 4:16 pm    Post subject:
Reply with quote

I believe the has been discussed before, did you try searching?
Back to top
View user's profile Send private message
sanjay_mf

New User


Joined: 30 May 2008
Posts: 10
Location: Bangalore

PostPosted: Wed Jun 25, 2008 4:22 pm    Post subject: Reply to: Can we Declare a Curosr in Procedure Division?
Reply with quote

I didn't find any.

Can anyone please send me the link of that discussion. Else please answer my query.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jun 25, 2008 4:32 pm    Post subject:
Reply with quote

It was hard to find I had to go to the second page of the search results.

http://ibmmainframes.com/viewtopic.php?t=31536&highlight=cursor
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Wed Jun 25, 2008 4:34 pm    Post subject:
Reply with quote

sanjay_mf,

I see that you are also a graduate of 'HOW TO MAKE FRIENDS AND INFLUENCE PEOPLE'.

dsnsqh11 is the db2 vsn 7 sql reference
dsnaph11 is the db2 vsn 7 application programmers guide.

If you don't know the answer to these questions you lack a tremendous amount of knowledge which can be best acquired by RTFM.
Back to top
View user's profile Send private message
sanjay_mf

New User


Joined: 30 May 2008
Posts: 10
Location: Bangalore

PostPosted: Wed Jun 25, 2008 4:41 pm    Post subject: Reply to: Can we Declare a Curosr in Procedure Division?
Reply with quote

Thanks Craq.....
Back to top
View user's profile Send private message
debajyoti2040
Currently Banned

New User


Joined: 25 May 2007
Posts: 4
Location: Bangalore

PostPosted: Fri Jun 27, 2008 11:31 am    Post subject: Can we Declare a Curosr in Procedure Division
Reply with quote

Definitely you can.
It can be done in Both Working-storage and Procedure Division.
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 Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
This topic is locked: you cannot edit posts or make replies. Stored procedure on Federated thru DB2 arif677 DB2 6 Tue May 31, 2016 11:48 pm


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