MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Building SQL Stored procedure

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
valeti_sashi
Beginner


Joined: 11 May 2005
Posts: 12
Topics: 7
Location: Chennai, India

PostPosted: Wed Sep 13, 2006 11:17 pm    Post subject: Building SQL Stored procedure Reply with quote

Hi,

i had created a pure SQL stored procedure in DB2. Now the question is how to build/compile it. is there any command in SQL itself like Compile in oracle or do we have to use a JCL compiler for binding it. it if we have to use the JCL compiler, please send me the send also.

please help me in this concern.

Regards,
Sashidhar
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Sep 13, 2006 11:37 pm    Post subject: Reply with quote

valeti_sashi,

Check this link which explains everything about DB2 Stored Procedures:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH11/6.2?DT=20010710165542
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
valeti_sashi
Beginner


Joined: 11 May 2005
Posts: 12
Topics: 7
Location: Chennai, India

PostPosted: Wed Sep 13, 2006 11:43 pm    Post subject: Reply with quote

Shekar,

I know how to create and execute Stored procedure. In between these two we to compile the procedure. I want, how to do that.
_________________
Regards,
Sashidhar
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Sep 13, 2006 11:51 pm    Post subject: Reply with quote

valeti_sashi,

Can you go through the section for the following topics ?

6.2.4.11 Preparing a stored procedure
6.2.4.12 Binding the stored procedure

Please let me know if you need more info.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
valeti_sashi
Beginner


Joined: 11 May 2005
Posts: 12
Topics: 7
Location: Chennai, India

PostPosted: Thu Sep 14, 2006 12:02 am    Post subject: Reply with quote

Shekar,

i already have this PDF and gone thru it. But this doesn't answer my question.
Quote:

how to build/compile SQL Stored Procedure. is there any command in SQL itself like Compile in oracle or do we have to use a JCL compiler for binding it.

i know how to compile and deploy external stored procedure.
please let me know if u have JCL for compiling SQL SP.
_________________
Regards,
Sashidhar
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Sep 14, 2006 4:18 am    Post subject: Reply with quote

valeti_sashi,

Sorry i do not have the Compile JCL with me and i am not sure about the changes in the JCL .But the process is you have to create a load and a package for the SQL statements in the procedure by normal compile and bind process.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group