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

Can we define the CURSOR in main pgm to use in subprogram


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

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Tue May 03, 2005 11:27 pm
Reply with quote

is it possible to define the cursor in mainprogram and use the same cursor in subprogram without defining it..
if please explain it with sample code..[b][/b]
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Nov 08, 2005 1:21 pm
Reply with quote

hi frnd,
u need to declare the cursor in the subpgm also. since u r going to compile it independently u need to define it in subpgm also. and having the same cursor in main and sub program will not show any error. but during the linking section it will show the error. i have not yet came across this situation but up to my knowld i have expl.
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 DTL - how to define key with stacked ... TSO/ISPF 3
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts Define default volume for DSN storage... JCL & VSAM 8
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
No new posts Parallel Sysplex - subprogram execution CICS 7
Search our Forums:

Back to Top