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 

Stored Procedures - DB2 V7

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


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Dec 26, 2002 6:50 am    Post subject: Stored Procedures - DB2 V7 Reply with quote

Hi all,

I have a stored procedure which I need to compile and link edit. As far as my understanding goes, you have to compile and link edit the stored procedure to a library which is concatenated to the start up job for SPAS. I looked into the job and found out the library. But when I approached my SYSPROG for access to the library, he said that no one compiles stored procedures into that library. He just said that I cannot use the library concatenated to SPAS. I have actually never compiled a stored procedure myself before. We always give it to the DBA. This is the first time I am doing it myself. But as far as I know(The manuals also say it) , you always need to compile your stored procedure on to a library defined in the SPAS start up job. That is the library where DB2 will search for the actual load which is specified in SYSIBM.SYSROUTINES.Can you please help me out on this and confirm on whether I am correct or not.

Regards,
Manas
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
gotluru
Beginner


Joined: 17 Dec 2002
Posts: 29
Topics: 6

PostPosted: Thu Dec 26, 2002 5:45 pm    Post subject: Reply with quote

Did you run create stored procedure statements?
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Dec 26, 2002 11:35 pm    Post subject: Reply with quote

Yes,

I have done that.
The following is the exact SQL that I ran successfully.

Code:

CREATE PROCEDURE STOMANAS(INPARAMETER CHAR(20) IN)
                 LANGUAGE COBOL                   
                 DETERMINISTIC                     
                 EXTERNAL NAME STOPROC             
                 COLLID xxxxxxx                   
                 PARAMETER STYLE GENERAL WITH NULLS
                 STAY RESIDENT NO                 
                 NO WLM ENVIRONMENT               
                 SECURITY DB2                     
                 COMMIT ON RETURN NO;             

What does that have to do with my question?

Regards,
Manas
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
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