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 » Store Message ID as hexadecimal?

Post new topic  Reply to topic
 Store Message ID as hexadecimal? « View previous topic :: View next topic » 
Author Message
K_A
PostPosted: Fri Jan 21, 2005 4:00 am    Post subject: Store Message ID as hexadecimal? Reply with quote

Apprentice

Joined: 10 Nov 2004
Posts: 32

Hi,

I have an Oracle db as to where I want to insert a record where one of the columns is Message ID. So, I want to pick the message ID from the MQMD and insert it in the table, in HEXADECIMAL format.
The column is declared as:
T_QMSGID_HEX VARCHAR2(48)


How to do it? Can anyone spare me an ESQL fragment for this?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 21, 2005 5:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Cast it to a character, without specifying a CCSID. That will turn it into the hex string you want, but you'll need to substring out the X' and ' that will wrap the 48 characters.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kirani
PostPosted: Sun Jan 23, 2005 2:44 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Another option would be to declare the DB colum as BLOB.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Store Message ID as hexadecimal?
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.