Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
does a stored procedure use a Plan

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
red_roses

New User


Joined: 31 Oct 2005
Posts: 27

PostPosted: Tue Sep 05, 2006 1:59 pm    Post subject: does a stored procedure use a Plan
Reply with quote

I am writing a stored procedure in cobol for accessing data that is on DB2, now i need to compile it. and since it a cobol pgm i assume the compile steps will be similar too.

so in this case for the bind step, do we need to create a plan for this stored procedure??

has anyone used cobol SP? so as to explain to me the steps involved in compiling n setting this up.?
Back to top
View user's profile Send private message

valeti_sashi

New User


Joined: 23 Jun 2006
Posts: 7

PostPosted: Wed Sep 13, 2006 2:20 pm    Post subject:
Reply with quote

stored procedure can not be executed by itself. it needs a program to call it. so there is no need of Plan for a SP. and the steps of compilation are exactly similar as normal cobol db2 program, only diff is u do creatd a plan for SP
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Wed Sep 13, 2006 8:29 pm    Post subject: Re: does a stored procedure use a Plan
Reply with quote

Use the following query in the cobol program

EXEC SQL
CALL <strred procedutre>
( :<arguments1,
:<arguments2,
:<arguments3)
END-EXEC.

There is a need for binding since DBRM is created.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
No new posts How do I define a DB2 plan for a web ... John Poulakos CICS 4 Sat Apr 14, 2018 1:58 am
No new posts Handling result sets in the calling N... Rusikesh DB2 7 Fri Apr 13, 2018 12:25 am
No new posts CICS web service from DB2 Triggers or... kiranprasad DB2 2 Wed Dec 20, 2017 11:10 am
No new posts Finding the plan when code compiled u... Ahemad DB2 2 Fri Dec 01, 2017 6:38 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us