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 » Convert UUID segment from Hex to dec

Post new topic  Reply to topic
 Convert UUID segment from Hex to dec « View previous topic :: View next topic » 
Author Message
Dhiren
PostPosted: Sun Sep 27, 2009 11:20 pm    Post subject: Convert UUID segment from Hex to dec Reply with quote

Novice

Joined: 27 Jan 2005
Posts: 17

I have a requirement is to generate an UUID (using UUIDASCHAR) and convert just the most significant segment to a decimal. Would appreciate if someone can help me with the ESQL to achieve this.

For example : if the generated UUID is '7ae6e91d-fb39-4ec0-b220-02e321d366b1' then I would like to covert just '02e321d366b1' part to decimal (base10) value.
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Mon Sep 28, 2009 8:43 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Requirement is too narrow to make much sense.
What problem is this requirement supposed to solve?

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
WMBDEV1
PostPosted: Mon Sep 28, 2009 11:06 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

You could search for an algorithm or even an implementation in Java. Heres one I found after a quick search:

http://www.roseindia.net/java/java-conversion/HexadecimalToDecima.shtml

Not wanting to take anything away from fjb_saber though, why are you trying to do this?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 28, 2009 11:11 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm confused.

Why isn't CAST, and possibly SUBSTRING, sufficient?
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 » Convert UUID segment from Hex to dec
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.