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 » String checking

Post new topic  Reply to topic
 String checking « View previous topic :: View next topic » 
Author Message
hemantborate
PostPosted: Mon Aug 11, 2014 6:52 am    Post subject: String checking Reply with quote

Newbie

Joined: 11 Aug 2014
Posts: 5

How to check one string present on other string or not?


i have 3 GADM code which will be any 4 digit no..right now my code is like
if(GADM=1234 OR GADM=3548) THEN .....

but i want to make it generic so that if GADM code added or removed will not affect on code..

step 1-will place all the GADM codes in one variable of property file GADMCodeVariable='1234,3548,8765'

step 2:i am reading that variable from property file but not able to compare with GADM code it...

Please tell me how should i compare GADM with GADMCodeVariable??
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 11, 2014 6:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

"IN"
Back to top
View user's profile Send private message
hemantborate
PostPosted: Mon Aug 11, 2014 7:07 am    Post subject: Reply with quote

Newbie

Joined: 11 Aug 2014
Posts: 5

IN will not work in this scenario..
'1234,3548,8765' is one string not comma separated value
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 11, 2014 7:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Back to top
View user's profile Send private message
McueMart
PostPosted: Tue Aug 12, 2014 12:11 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

Review http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ak05190_.htm?lang=en and use your skills as a software developer to figure this one out. Hint , it begins with a 'C'.
Back to top
View user's profile Send private message
MB Developer
PostPosted: Tue Aug 12, 2014 5:04 am    Post subject: Reply with quote

Disciple

Joined: 03 Feb 2014
Posts: 179

CONTAINS
_________________
Thanks....
Back to top
View user's profile Send private message
hemantborate
PostPosted: Tue Aug 26, 2014 2:06 pm    Post subject: Reply with quote

Newbie

Joined: 11 Aug 2014
Posts: 5

DONE..Thank You all
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 » String checking
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.