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

Can we Declare a Curosr in Procedure Division?


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

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

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: 6966
Location: porcelain throne

PostPosted: Wed Jun 25, 2008 4:34 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top