|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Store Message ID as hexadecimal? |
« View previous topic :: View next topic » |
Author |
Message
|
K_A |
Posted: Fri Jan 21, 2005 4:00 am Post subject: Store Message ID as hexadecimal? |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Jan 21, 2005 5:49 am Post subject: |
|
|
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 |
|
 |
kirani |
Posted: Sun Jan 23, 2005 2:44 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|