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 » Finding a string of HEX characters in string data.

Post new topic  Reply to topic
 Finding a string of HEX characters in string data. « View previous topic :: View next topic » 
Author Message
jrannis
PostPosted: Wed Jan 16, 2002 2:03 pm    Post subject: Reply with quote

Novice

Joined: 04 Nov 2001
Posts: 10
Location: Waterloo Ontario

Is there a way of find the POSITION of a string of hex characters within a character string, WITHOUT using BLOB data.

The specific example is that we are looking for the POSITION of the carriage-return line-feed within a string of character data.

DECLARE a integer;
SET a = POSITION ( X'OAOD' IN InputRoot.XML.textBox)

I know this doesn't work (illegal operands), however it should give you an idea of what I'm trying to accomplish.

thanks.
Back to top
View user's profile Send private message
jrannis
PostPosted: Wed Jan 16, 2002 3:44 pm    Post subject: Reply with quote

Novice

Joined: 04 Nov 2001
Posts: 10
Location: Waterloo Ontario

Actually, I've found a work around for this.
DECLARE x INTEGER;
DECLARE c CHARACTER;

/* do not change the assignment of "c", it is meant to look that way */
SET c='
';

SET x=POSITION( c IN OutputRoot.XML.textBox);

Back to top
View user's profile Send private message
Miriam Kaestner
PostPosted: Thu Jan 17, 2002 9:16 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2001
Posts: 103
Location: IBM IT Education Services, Germany

You could let WMQI 2.1 do the hex to char conversion for you as follows:

SET a = POSITION ( cast(X'OAOD' as CHAR CCSID 850) IN InputRoot.XML.textBox);

Don't forget CCSID parameter!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Finding a string of HEX characters in string data.
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.