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 » Enumerations in Esql

Post new topic  Reply to topic
 Enumerations in Esql « View previous topic :: View next topic » 
Author Message
hvhora
PostPosted: Mon Aug 28, 2017 9:01 am    Post subject: Enumerations in Esql Reply with quote

Newbie

Joined: 09 Aug 2017
Posts: 6

How do we handle enumerations in esql. Based on the incoming state field value, I need to pick the right code. Any sample code would be really helpful.
Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Aug 28, 2017 9:12 am    Post subject: Re: Enumerations in Esql Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hvhora wrote:
How do we handle enumerations in esql. Based on the incoming state field value, I need to pick the right code. Any sample code would be really helpful.


SELECT .. WHEN would be the obvious choice
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 28, 2017 10:58 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Or build a structure in a shared variable or global cache that looks something like MyRoot.{enumerated value}.stuff.

That is, a hashmap.

Remembering that ESQL { } can only support one level.
_________________
chmod -R ugo-wx /
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 » Enumerations in Esql
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.