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 

SQLCODE -567 while creating stored procedure

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


Joined: 06 Nov 2017
Posts: 10
Topics: 4

PostPosted: Thu Apr 04, 2019 12:10 pm    Post subject: SQLCODE -567 while creating stored procedure Reply with quote

Hi,

I am trying to create the below stored procedure. This is the first time I am trying to create a Stored procedure.


Code:
SET CURRENT SQLID = 'M3DEVL';

  CREATE PROCEDURE UPDATESALARY2   
  (IN EMPNUMBER INTEGER)           
  LANGUAGE SQL                     
  MODIFIES SQL DATA                 
  UPDATE EMPTABLE                   
    SET EMPSAL = EMPSAL * 3         
    WHERE EMPNO = EMPNUMBER;


I get the below error. Any pointers on how to get this resolved. I have an application program with DB2 statements and was able bind the package to M11PLOC.DEVLGCBATCH.*. However, when I try to create a procedure it tries with M11PLOC.M3DEVL.*. How do we default the package to M11PLOC.DEVLGCBATCH.* for which I have bind authority.

Code:
DSNT408I SQLCODE = -567, ERROR:  REBIND AUTHORIZATION ERROR USING M3DEVL 
         AUTHORITY PACKAGE = M11PLOC.M3DEVL.UPDATESALARY2.(V1) PRIVILEGE =
         CREATE IN


Thanks in Advance
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Apr 04, 2019 3:01 pm    Post subject: Reply with quote

shreyas_e,

You probably ran into the issue described here

http://www-01.ibm.com/support/docview.wss?uid=swg1PM59638
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
shreyas_e
Beginner


Joined: 06 Nov 2017
Posts: 10
Topics: 4

PostPosted: Thu Apr 04, 2019 3:51 pm    Post subject: Reply with quote

Hi Kolusu,

Thanks for looking in to this. We have DB2 10, 11 and 12. In all the versions i get the same error. Not sure if this is something else, before reaching out to DB2 Admin.

Thanks
Shreyas
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Apr 04, 2019 5:31 pm    Post subject: Reply with quote

DB2 Admin is your second port of call - after your colleagues. A forum should be your last.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
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