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 

DB2 SQL Procedure Catalog

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


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Tue Mar 31, 2009 2:07 pm    Post subject: DB2 SQL Procedure Catalog Reply with quote

I have created the following DB2 SQL procedure on z/os. It created succesfully. But I am unable to locate in DB@ catalog tables like SYSIBM.SYSROUTINES/SYSPARMS tables. I wonder where these definiton store? Any ideas? Is it different for SQL procedures from COBOL procedures in z/os environment. We are in version DB2 V8. My sql as follows.
Code:

SET CURRENT SQLID = 'I581G';                 
                                             
CREATE PROCEDURE UPDRUGS                     
   (IN  DMUMNEM               CHAR(8)       
   ,IN  DOSAGE                DECIMAL(5, 2) 
   )                                         
    RESULT SETS 0                           
    MODIFIES SQL DATA                       
    EXTERNAL NAME UPDRUGS                   
    NO DBINFO                               
    WLM ENVIRONMENT TDB2SID1                 
    STAY RESIDENT NO                         
    COLLID ICVPC                             
    PROGRAM TYPE MAIN                       
    RUN OPTIONS 'TRAP(OFF),RPTOPTS(OFF)'     
    COMMIT ON RETURN NO                     
    LANGUAGE SQL               
   UPDATE IDVPCS01.ITORDSET   
       SET DOSE = DOSE * DOSAGE
   WHERE MNEMONIC = DMUMNEM;
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 31, 2009 4:00 pm    Post subject: Reply with quote

schintala,

How did you create the SP? did you do it via SPUFI? If so make sure that Auto Commit is SET to YES on the options panel in spufi

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Wed Apr 01, 2009 8:32 am    Post subject: Reply with quote

Thank you for the reply. It was my error. My spufi panel did not set properly. I corrected it now after your reply.
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