|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem retrieving Decimal values from DB on calling SP |
« View previous topic :: View next topic » |
Author |
Message
|
djeripo |
Posted: Thu Jun 17, 2004 2:54 pm Post subject: Problem retrieving Decimal values from DB on calling SP |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
Hi,
I have a problem retrieving 'Decimal' values from the database on calling a stored procedure . I am using DestinationList to route input messages to multiple Queues from compute node.
In my ComputeNode under 'Advanced' tab 'Compute Mode' is set to 'All'.(I Even tried setting 'Compute Mode' to 'LocalEnvironment and Message')
Under output node 'DetinationMode' is set to 'DestinationList'.
I could retrieve all other Char,Integer fields except these Decimal fields .
I checked with the DB admin to check whether he has any problem retrieving Decimal values from his StoreProcedure builder for the key value.For him he could get everything .
For confirmation,
I tried printing those in Environment tree
SET Environment.Variables.RISK_FACTOR = UT2_ADD_RSK_FTR_515;
As the value was not retrieved RISK_FACTOR did not show up in the tree.
The SP I was calling was ,
CALL CTP1030 ( POLICY_NUMBER,CO_CMPY_CDE_515,HA1_POL_COV_PLN_515,
UT2_COV_SEQ_NUM_515,UT2_RATEBOOK_CD_515,
UT2_FACE_AMT_515,POL_FRM_RDR_CD_515,
PG_EFF_DTE_515,PG_RMOV_DTE_515,UP1_VALN_GRP_CD_515,
UP1_PLAN_CDE_NM_515,UT2_ADD_RSK_FTR_515,
UT2_EXTA_BSC_PM_515,T1_ADMIN_SYS_CD_515,
UT2_SUBCLASS_PC_515, RETURN_CDE_515,
MESSAGE_515);
CREATE PROCEDURE CTP1030 (
IN IC_AR_POL_ACCT_NUM CHAR,
OUT OC_CO_CMPY_CDE CHAR,
OUT OC_HA1_POL_COV_PLN CHAR,
OUT OI_UT2_COV_SEQ_NUM INT,
OUT OC_UT2_RATEBOOK_CD CHAR,
OUT OD_UT2_FACE_AMT DECIMAL,
OUT OC_POL_FRM_RDR_CD CHAR,
OUT OC_PG_EFF_DTE CHAR,
OUT OC_PG_RMOV_DTE CHAR,
OUT OC_UP1_VALN_GRP_CD CHAR,
OUT OC_UP1_PLAN_CDE_NM CHAR,
OUT OD_UT2_ADD_RSK_FTR DECIMAL,
OUT OD_UT2_EXTA_BSC_PM DECIMAL,
OUT OC_T1_ADMIN_SYS_CD CHAR,
OUT OI_UT2_SUBCLASS_PC INT,
OUT OI_RETURN_CDE INT,
OUT OC_MESSAGE CHAR
) EXTERNAL NAME "PCTP001.CTP1030";
I am running on WMQI2.1 CSD6
Any pointers would be appreciated
Thanks |
|
Back to top |
|
 |
kirani |
Posted: Thu Jun 17, 2004 10:49 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Which DB are you using? Have you tried calling the SP separately from the command prompt? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
djeripo |
Posted: Fri Jun 18, 2004 7:01 am Post subject: |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
Kiran,
The DataBase I am using is DB2 . When the DB admin called the same SP from his command prompt it was retrieving all values Char,Int and Decimal .
On my request he changed that Decimal data type in the SP to Char and I could retrieve the same Decimal as Char and I am again casting it back to Decimal in my ESQL code . I really cant understand why I could retrieve Char but not Decimal.
Thanks |
|
Back to top |
|
 |
kirani |
Posted: Fri Jun 18, 2004 11:05 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
That's strange! I'd suggest that you open a PMR for this problem. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|