473,425 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

How to call SQL Stored Procedure from REXX?

I called Stored Procedure written in SQL from Object REXX on Windows
like this
CALL SQLEXEC 'CALL MigrateDECODE(:inString,:Converted)'
CALL CHECKERR 'CALL MigrateDECODE'
(CHECKERR was copied from DB2 sample program)
But, it returned -444 as followings. How can I call Stored Procedure
written in SQL from REXX?
--- error report ---
ERROR occurred : CALL MIGRATEDECODE
SQLCODE : -444
SQL0444N Routine "MigrateDECODE" (specific name "SQL061201015631890")
is
implemented with code in library or path "\MigrateDECODE", function
"MigrateDECODE" which cannot be accessed. Reason code: "4".
SQLSTATE=42724
--- end error report ---

Nov 30 '06 #1
2 3840
Tonkuma wrote:
I called Stored Procedure written in SQL from Object REXX on Windows
like this
CALL SQLEXEC 'CALL MigrateDECODE(:inString,:Converted)'
CALL CHECKERR 'CALL MigrateDECODE'
(CHECKERR was copied from DB2 sample program)
But, it returned -444 as followings. How can I call Stored Procedure
written in SQL from REXX?
--- error report ---
ERROR occurred : CALL MIGRATEDECODE
SQLCODE : -444
SQL0444N Routine "MigrateDECODE" (specific name "SQL061201015631890")
is
implemented with code in library or path "\MigrateDECODE", function
"MigrateDECODE" which cannot be accessed. Reason code: "4".
SQLSTATE=42724
--- end error report ---
I wish i could help you. We had an error like this (not in REXX) and i
don't remember what we did. My only guess would be to make sure that
the SCHEMA is set, so that any FUNCTIONs in the stored PROCEDURE
resolve properly, such as with the SET PATH command.

B.

Nov 30 '06 #2
Brian, Thank you for your prompt reply.
I resolved this isuue. I had connected to database without specifying
user id.
After I specified user id and password. It worked well.

Dec 1 '06 #3

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

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
3
by: Mariusz | last post by:
I want to write function to call another function which name is parameter to first function. Other parameters should be passed to called function. If I call it function('f1',10) it should call...
4
by: Jean-Marc Blaise | last post by:
Dear all, I have simulated the windows MULTI application with a java program calling the SQLTP1DL proc referenced as DB2DARI application, on Linux Intel or ZLinux. If the proc is NOT FENCED,...
7
by: Jeff Wang | last post by:
Hi all, Can someone help me out? I've been struggling with this for almost a week and still have no clue what's wrong. Basically I want to write a DB2 stored procedure for OS/390 in REXX. In...
2
by: Massimiliano Campagnoli | last post by:
What are the supported languages to write stored procedure in db2 v8.2 for linux ? Is object rexx included ?
3
by: mandible | last post by:
I'm trying to call one stored procedure inside another. I was wondering if this is possible Some ideas I was toying with is putting the first stored procedure inside of a temp table but haven't...
3
by: cberthu | last post by:
Hi all, Is it possible to have two connects in the same rexx script to different DB's? I have to get data form on DB (with specifics selects and filter out some values with RExx) and save the...
2
by: savio XCIX | last post by:
I created the following stored procedure: ======= CREATE PROCEDURE TBLNAME.proc_test (IN p_custnum VARCHAR(8), IN p_zipcode...
12
by: barmatt80 | last post by:
I don't know if this is the right part of the forum. But.... I have been working all night trying to create a web service to call a stored procedure in sql server 2008. The stored procedure calls...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.