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 » CAST CHAR to HEX CHAR and then on to BLOB???

Post new topic  Reply to topic
 CAST CHAR to HEX CHAR and then on to BLOB??? « View previous topic :: View next topic » 
Author Message
mapa
PostPosted: Mon Oct 22, 2001 3:31 am    Post subject: Reply with quote

Master

Joined: 09 Aug 2001
Posts: 257
Location: Malmö, Sweden

Hi,

I have a compute node in the BLOB domain where I have to add CRLF (hex 0d0a) after some end tags.
I wonder if there is any way to cast from in my example CAST ('</MESSAGE>' AS CHAR HEX) instead of using the hex-string - '3c2f4d4553534147453e'.
No, I don't speak hex fluidly.

-- </MESSAGE>
SET Pos = POSITION( '3c2f4d4553534147453e' IN StrResult);
IF Pos > 0 THEN
SET StrResult = SUBSTRING(StrResult FROM 1 FOR (Pos + 19 )) || '0d0a'
|| SUBSTRING(StrResult FROM (Pos + 20) FOR StrLength);
END IF;

Reading the ESQL Reference manual I can't see a way of doing this.

Best regards Magnus Palmér

[ This Message was edited by: mapa on 2001-10-22 04:33 ]
Back to top
View user's profile Send private message Visit poster's website
EddieA
PostPosted: Mon Oct 22, 2001 2:40 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

ASAIK The way you are doing it is the only way (at present). Messy, isn't it.

Although if anyone has a different solution, I too would love to know about it.

Cheers.

_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » CAST CHAR to HEX CHAR and then on to BLOB???
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.