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 » validatiing subString from a string

Post new topic  Reply to topic
 validatiing subString from a string « View previous topic :: View next topic » 
Author Message
wmqiadmin
PostPosted: Thu Mar 01, 2007 6:14 am    Post subject: validatiing subString from a string Reply with quote

Disciple

Joined: 19 Jun 2005
Posts: 163
Location: epping UK

Hi All,

What I am trying to do is validate list of substrings from a error description message coming as an xml string element.

For e.g. from a string i have to check where it contains "File not found" or similar list of strings. These substring doesn't have any fix potions or fixed length & can be any where in the error descriptions...Any suggestions in this.

Thanks
wmqiadmin
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 01, 2007 6:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Doesn't the POSITION function solve this problem?

It will tell you at what point the substring in question was found, or that the substring wasn't found.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wmqiadmin
PostPosted: Thu Mar 01, 2007 6:55 am    Post subject: Reply with quote

Disciple

Joined: 19 Jun 2005
Posts: 163
Location: epping UK

Thanks Jeff, I don't know how i missed this... i was more into substring functions...

Once again thanks for the quick answer.. i appreciate your help.

wmqiadmin
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 » validatiing subString from a string
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.