473,473 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error explanation help

Running the following shell script (DB2 8.1.5, LINUX):
db2 <<END
connect to animals
set schema is3
SET PATH = CURRENT PATH, IS3@
call make_angus_animals()
commit
quit
END

I am getting the following message (among other innocuous ones):
SQL0440N No authorized routine named "MAKE_ANGUS_ANIMALS" of type
"PROCEDURE" having compatible arguments was found. SQLSTATE=42884

I ran the following shell script (with many lines elided) to create the
procedure, which completed without error:
-- vim: set ai sw=4 ts=4:
--
-- Create the animals, awards, herdid and gene_defects tables from
angus_in and animals_in;
-- tattoo is the link.
--
connect to animals@
--
set schema is3@
--
SET PATH = CURRENT PATH, IS3@
--
drop procedure make_angus_animals@
--
CREATE PROCEDURE make_angus_animals()
LANGUAGE SQL
BEGIN
-- variables for checking record read or not
DECLARE SQLSTATE CHAR(5);
DECLARE v_at_end INT DEFAULT 0;
..
.. lots of code omitted
..
END LOOP;
CLOSE c1;
INSERT INTO is.debugging VALUES (CURRENT_TIMESTAMP,v_program,
'Routine ended');
END @
--
GRANT EXECUTE ON PROCEDURE make_angus_animals TO PUBLIC@

I don't understand! I have read the manual's relevant parts (CALL,
CREATE PROCEDURE, GRANT EXECUTE, etc.) and I can't see my error. I must
be missing something obvious. Any pointers to the cause of the problem
would be greatly appreciated.

Nov 12 '05 #1
1 1726
I realize both top posting and self replying are frowned on, but this is
a special case: Ignore the original message; I found the problem! It was
the '@' left over from a cut-and-paste operation. Amazing what you can't
see when you're looking right at it!
Robert Stearns wrote:
Running the following shell script (DB2 8.1.5, LINUX):
db2 <<END
connect to animals
set schema is3
SET PATH = CURRENT PATH, IS3@ ^ problem! call make_angus_animals()
commit
quit
END

I am getting the following message (among other innocuous ones):
SQL0440N No authorized routine named "MAKE_ANGUS_ANIMALS" of type
"PROCEDURE" having compatible arguments was found. SQLSTATE=42884

I ran the following shell script (with many lines elided) to create the
procedure, which completed without error:
-- vim: set ai sw=4 ts=4:
--
-- Create the animals, awards, herdid and gene_defects tables from
angus_in and animals_in;
-- tattoo is the link.
--
connect to animals@
--
set schema is3@
--
SET PATH = CURRENT PATH, IS3@
--
drop procedure make_angus_animals@
--
CREATE PROCEDURE make_angus_animals()
LANGUAGE SQL
BEGIN
-- variables for checking record read or not
DECLARE SQLSTATE CHAR(5);
DECLARE v_at_end INT DEFAULT 0;
.
. lots of code omitted
.
END LOOP;
CLOSE c1;
INSERT INTO is.debugging VALUES (CURRENT_TIMESTAMP,v_program,
'Routine ended');
END @
--
GRANT EXECUTE ON PROCEDURE make_angus_animals TO PUBLIC@

I don't understand! I have read the manual's relevant parts (CALL,
CREATE PROCEDURE, GRANT EXECUTE, etc.) and I can't see my error. I must
be missing something obvious. Any pointers to the cause of the problem
would be greatly appreciated.


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mac Wood | last post by:
Could someone please explain this error message: Traceback (most recent call last): File "C:\Python23\time.py", line 1, in -toplevel- time.py NameError: name 'time' is not defined I tried...
14
by: tasheeta | last post by:
In my simple program I am getting this error..please help I am trying to find integers where 65537i + 3551j = 1 error: cannot convert `__complex__ int' to `long int' in assignment ...
4
by: PaulR | last post by:
Hi, We have a Server running SLES 8 and 3GB memory, with 1 DB2 instance and 2 active Databases. General info... DB2level = "DB2 v8.1.0.72", "s040914", "MI00086", and FixPak "7" uname -a =...
4
by: Chua Wen Ching | last post by:
Thanks Derek... Okay i had another question.. my program runs smoothly for the first minute, after 1 minute... suddenly it breaks and display this error: do you know what is the cause of...
1
by: Franko | last post by:
I get the following error. Please help c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,38): error CS1001: Identifier expected c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,52): error...
1
by: JumpingOffPlace | last post by:
Hi, I'm hoping that the wealth of knowledge here can stop me from spinning my wheels on this syntax error for hours. :) Below is the code, and the error I am recieving.... Code: <!DOCTYPE...
7
by: teddarr | last post by:
I have an assignment I've been working on for a few days now. I need some help with the last detail. The program is supposed to create 5 objects with varying floating-point parameter lists. The...
0
by: smtwtfs007 | last post by:
Any body has any idea about his error please? I got this error at the time of creating crystal report. I tried everything to resolve this error. But I could not. Please help. Exception has...
1
by: vikjohn | last post by:
I have a new perl script sent to me which is a revision of the one I am currently running. The permissions are the same on each, the paths are correct but I am getting the infamous : The specified...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.