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

CURSOR DEFN


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed Feb 18, 2004 10:45 pm
Reply with quote

A cursor can be declared (defining a cursor) in working storage or procedure division i hope.i want to know the difference.

can anyone explain me the difference of declaring a cursor in procedure division and declaring it in working storage.

THANKS AND REGARDS
ANU
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Feb 19, 2004 1:25 pm
Reply with quote

Hello anuradha,

The usage of the DECLARE CURSOR statement is the flexibility which IBM has provided.

You can use it anywhere in your program since it is not an executable statement. I think its just the question of standards which your site follows.

Look at the link below to get more details.
Code:

http://member.netease.com/~jnkey/as400flr/400learn/sql400tutorial/chap15/footnote.htm


Hope this helps,

Regards

Mayuresh Tendulkar
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Feb 19, 2004 2:18 pm
Reply with quote

Hello anuradha,

Here is the more appropriate link for the question.
Code:

http://prd4p.it.state.wi.us/etf/wisc/adbhome/db2programmingstandardsandguidelines.doc


Hope this helps,

Regards

Mayuresh Tendulkar
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 Is SQLCODE -811 possible while fetchi... DB2 1
No new posts Restart logic by using cursor name in... DB2 1
No new posts Seeking Resolution for SQKCODE -991 o... DB2 2
No new posts Multiple rows within Cursor when Coun... DB2 14
No new posts Dynamic cursor name in Cobol program COBOL Programming 1
Search our Forums:

Back to Top