ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problems in CASTING

Post new topic  Reply to topic
 Problems in CASTING « View previous topic :: View next topic » 
Author Message
tom_123
PostPosted: Fri Mar 14, 2008 7:22 am    Post subject: Problems in CASTING Reply with quote

Novice

Joined: 28 Feb 2008
Posts: 15

Hi,

Can anybody identify where is wrong in my code

(REPLACE (refDrr.DBRH_REC.DTRB.ValueCreditTransfersDirect,',','.')) + (REPLACE (refDrr.DBRH_REC.DTRB.ValueCreditTransfersIndirect,',','.'))
I want to add these values. where in data type of refDrr.DBRH_REC.DTRB.ValueCreditTransfersDirect and refDrr.DBRH_REC.DTRB[I].ValueCreditTransfersIndirect is CHARACTER.

When i trying to deploy "Invalid or incompatible data types for '+' operator" error I get.

I also try in using CAST

"CAST(REPLACE (refDrr.DBRH_REC.DTRB.ValueCreditTransfersDirect,',','.')) AS DECIMAL) + CAST(REPLACE (refDrr.DBRH_REC.DTRB.ValueCreditTransfersIndirect,',','.')) AS DECIMAL)"

but I still getting error in toolkit.

I want to know where I wrong.
Back to top
View user's profile Send private message
mrgate
PostPosted: Fri Mar 14, 2008 7:35 am    Post subject: Reply with quote

Centurion

Joined: 28 Feb 2007
Posts: 141
Location: India

Hello tom_123,
can you post a sample input structure.
_________________
MQSeries terrorist
Back to top
View user's profile Send private message
tom_123
PostPosted: Fri Mar 14, 2008 7:51 am    Post subject: Reply with quote

Novice

Joined: 28 Feb 2008
Posts: 15

Hi,

Message in field is in format "000000000001024,00" and "000000000000000,00" which is in character.

I want to add these values and store in another field which data type also in character.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problems in CASTING
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.