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

Declare a cursor in procedure division & data division ?


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

New User


Joined: 23 Sep 2008
Posts: 3
Location: India

PostPosted: Wed Sep 24, 2008 11:36 pm
Reply with quote

Hi freinds,
Suppose we declare cursor in data division...what happens
suppose we declare cursor in procedure division..what happens
Please explain about this topic..advance thanks
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Sep 24, 2008 11:39 pm
Reply with quote

No difference, just declare before the actual cursor open....
Back to top
View user's profile Send private message
satya sai

New User


Joined: 23 Sep 2008
Posts: 3
Location: India

PostPosted: Wed Sep 24, 2008 11:47 pm
Reply with quote

Hi freinds,

Declare cursor is declared in both data divsion & procedure division.

Suppose we declare cursor in data division...what happens
suppose we declare cursor in procedure division..what happens
Please explain about this topic..advance thanks
Back to top
View user's profile Send private message
satya sai

New User


Joined: 23 Sep 2008
Posts: 3
Location: India

PostPosted: Wed Sep 24, 2008 11:47 pm
Reply with quote

Hi freinds,

Declare cursor is declared in both data division & procedure division.

Suppose we declare cursor in data division...what happens
suppose we declare cursor in procedure division..what happens
Please explain about this topic..advance thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 25, 2008 12:08 am
Reply with quote

Hello satya and welcome to the forum,

Is there some reason for posting your question 2 more tmes?
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 Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top