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 Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am

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