Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
CURSOR DEFN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Wed Feb 18, 2004 10:45 pm    Post subject: CURSOR DEFN
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
References
PostPosted: Wed Feb 18, 2004 10:45 pm    Post subject: Re: CURSOR DEFN Reply with quote

mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 257
Location: USA

PostPosted: Thu Feb 19, 2004 1:25 pm    Post subject:
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.

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: 257
Location: USA

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

Hello anuradha,

Here is the more appropriate link for the question.

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1