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 » RE: Cast

Post new topic  Reply to topic
 RE: Cast « View previous topic :: View next topic » 
Author Message
arun4ruu
PostPosted: Tue Jun 26, 2012 6:56 am    Post subject: RE: Cast Reply with quote

Newbie

Joined: 13 Jan 2012
Posts: 8

How to cast 9619 to 96.19 in ESQL..

Really Appreciate Your Help
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 26, 2012 7:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Substring?

CAST?

Call external procedure?

Make sure the message definition is properly configured?
Back to top
View user's profile Send private message
kash3338
PostPosted: Tue Jun 26, 2012 9:08 am    Post subject: Re: RE: Cast Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

arun4ruu wrote:
How to cast 9619 to 96.19 in ESQL..

Really Appreciate Your Help


You can never cast 9619 to 96.19. If you want to convert 9619 to 96.19 using esql, divide 9619 by 100 (9619/100).
Back to top
View user's profile Send private message Send e-mail
arun4ruu
PostPosted: Tue Jun 26, 2012 11:48 am    Post subject: Reply with quote

Newbie

Joined: 13 Jan 2012
Posts: 8

Thank You All.

I coded and I got it.

DECLARE VAL DECIMAL 9619;
DECLARE VALU DECIMAL;
SET VALU = CAST((VAL / 100) AS DECIMAL(16,2));
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 » RE: Cast
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.