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 » ESQL query

Post new topic  Reply to topic
 ESQL query « View previous topic :: View next topic » 
Author Message
me@tcs
PostPosted: Sun Apr 10, 2011 10:20 pm    Post subject: ESQL query Reply with quote

Novice

Joined: 22 Mar 2008
Posts: 18

Hi,

I have a requirement like to convert a particular elemtn based on its value. I am using a case function like this

RETURN CASE status
WHEN '1234.56' THEN 'Status1'
WHEN '2200.33' THEN 'Status2'
WHEN '3700.845 THEN 'Status3'

However, I have a case where the value can come in as 3200.*** (wildcard after the decimal) and has to be converted to Status4. Which means, the value may be 3200.123 or 3200.250 or 3200.455 and it needs to be converted to Status4. Could anyone please help me in handling this one?

-Regards
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Apr 11, 2011 1:14 am    Post subject: Re: ESQL query Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Search the documentation for how to use the CASE function with the searched-when-clause, and for how to use the LIKE complex comparison operator.
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 » ESQL query
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.