473,503 Members | 5,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stored Procedure not working on DB2 8.1.14 on Windows XP

3 New Member
Hi,

Im trying to execute a C Stored Procedure(getTransactionId.sqc) from one of Developer Works articles "Transaction IDs in DB2 -- retrieve a unique identifier for a unit of work from the DB2 log records" by Knut Stolze and Im getting the following error upon issueing the command "db2 => CALL getTransactionId(?)"
.................................................. ...................
SQL0444N Routine "*ACTIONID" (specific name "GETTRANSACTIONID") is
implemented with code in library or path "...\getTransactionId.DLL", function
"getTransactionId" which cannot be accessed. Reason code: "4".
SQLSTATE=42724
.................................................. ................

The dll file("getTransactionId.dll" is there under FUNCTION subdirectory). The contents of the script "getTransaction.db2" that is used for stored procedure registration with the database are as follows:
.................................................. ..........
CREATE PROCEDURE getTransactionId ( OUT transactionId CHAR(12) )
SPECIFIC getTransactionId
DYNAMIC RESULT SETS 0
MODIFIES SQL DATA
NOT DETERMINISTIC
NEW SAVEPOINT LEVEL
LANGUAGE C
EXTERNAL NAME 'D:\Programs\IBM\SQLLIB\FUNCTION\getTransactionId! getTransactionId'
FENCED THREADSAFE
NO EXTERNAL ACTION
PARAMETER STYLE SQL
PROGRAM TYPE SUB
NO DBINFO@
.................................................. .........
and the contents of the getTranactionId.def file are as follows (I created this file manually):
.................................................. .........
; getTransactionId.def : Declares the module parameters for the DLL.

LIBRARY "getTransactionId"

EXPORTS
getTransactionId
; Explicit exports can go here
.................................................. ..........

I've tried various ways but haven't been able to get to the root of the problem. I applied FixPak 14 as well but the problem is still there.
I've posted my query so many times on "developer works" but no one has replied yet.

Please help me. Its urgent.

Actually, the whole idea is to read DB2 Log files using db2api. If anyone has any idea about this, please help.

Thanks for any help.
Jun 11 '08 #1
0 1023

Sign in to post your reply or Sign up for a free account.

Similar topics

3
22091
by: dinesh prasad | last post by:
I'm trying to use a servlet to process a form, then send that data to an SQL server stored procedure. I'm using the WebLogic 8 App. server. I am able to retrieve database information, so I know my...
5
1148
by: Max | last post by:
I thought in server explorer, I could add or edit stored procedures, but all I can do is refresh and run... -Max
7
9681
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
0
5785
by: pompeyoc | last post by:
I am trying to learn how to use stored procedures written in COBOL so I wrote 2 small programs to test it out: the stored procedure and the the calling program. I have no problems compiling them...
0
1801
by: gregoryday | last post by:
I am having a problem with creating a stored procedure. The premise underwhich we are operating is the following: We are working with two tables. The first table simply stores an integer value...
0
7193
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7264
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
7449
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
5562
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
4992
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
3160
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
1495
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 ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.