If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > problem calling stored procedure, DB2 SQL error: SQLCODE: -444, SQLSTATE: 42724

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-16-04, 11:38
unmesh unmesh is offline
Registered User
 
Join Date: Sep 2004
Posts: 15
problem calling stored procedure, DB2 SQL error: SQLCODE: -444, SQLSTATE: 42724



We have DB2 UDB v8.2 on RedHat Linux and are having problem calling a stored procedure from Java client. The name of the stored procedure is GROWTH_CHARTS which has three varchar "in" parameters and it returns an open cursor.

PROCEDURE GROWTH_CHARTS (
IN v_GUID VARCHAR(19),
IN v_temp VARCHAR(7),
IN v_ENC VARCHAR(19))

When we execute the stored procedure from the db2 command prompt it works fine.

db2 => call nwdb2.GROWTH_CHARTS('a', 'b', 'c')

Return Status = 0

When the GROWTH_CHARTS is called from a Java client we get the follwoing error -
"com.ibm.db2.jcc.c.SqlException:
java.sql.CallableStatement.executeQuery() was called but no result set
was returned. Use java.sql.CallableStatement.executeUpdate() for
non-queries."

When an isolated test case with the same SQL is run, it gives an error complaining it couldn't find a file: DB2 SQL error: SQLCODE: -444, SQLSTATE: 42724, SQLERRMC: GROWTH_CHARTS;SQL040916092620920;\GROWTH_CHARTS;GR OWTH_CHARTS;4.

Any help will be appreciated. Thanks!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On