What happens if you try to create the stored procedure with System naming
convention instead of SQL Naming.
You may need to change the environment where you are working to the System
Naming convention.
STRSQL --> F13 --> Option 1 --> Naming convention
System i Navigator --> Run an SQL Script --> JDBC Settings --> Format -->
Naming convention
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von tim.dclinc@xxxxxxxxx
Gesendet: Saturday, 28.7 2012 23:42
An: Midrange Systems Technical Discussion
Betreff: Re: create procedure giving Not authorized to CREATE PROCEDURE
im calling a program from a command line under my profile which if part of
QPGMR group.
The command run is:
QSH CMD('/usr/bin/db2 -t -f
/qsys.lib/XMLSERVICE.lib/QSQLSRC.FILE/CRTSQL.MBR')
The create proc is:
CREATE PROCEDURE XMLSERVICE.iBLOBR15M(
IN IPC CHAR(1024), IN CTL CHAR(1024),
IN CI BLOB(15M))
LANGUAGE RPGLE NOT DETERMINISTIC
MODIFIES SQL DATA
Result Sets 1
EXTERNAL NAME 'XMLSERVICE/XMLSTOREDP(iPLUGR15M)'
PARAMETER STYLE GENERAL;
The errors from qsh are;
**** CLI ERROR *****
SQLSTATE: 42502
NATIVE ERROR CODE: -552
Not authorized to CREATE PROCEDURE.
**** CLI ERROR *****
SQLSTATE: 42502
NATIVE ERROR CODE: -552
Not authorized to CREATE PROCEDURE.
Press ENTER to end terminal session.
On 7/28/2012 5:04 PM, Vernon Hamberg wrote:
Tim
What are the messages that come before the error message? There's
often more information there, and we can only guess until we know more.
What interface are you using? If STRSQL, put cursor on message and
press F1, then F10.
If Navigator, WRKOBJLCK YOURUSERID *USRPRF and see if there's a
QZDASOINIT job for you - then check it's job log.
Thanks
Vern
On 7/28/2012 12:53 PM, tim.dclinc@xxxxxxxxx wrote:
im trying to create a procedure and get Not authorized to CREATE
PROCEDURE. message. I checked the authority of SYSROUTINES in QSYS2
and qpgmr has full authority which my profile is part of.
What else am i missing?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.