 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Scan a string</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 13:28:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: 9783444184</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107420</link>
		<dc:creator>9783444184</dc:creator>
		<pubDate>Fri, 11 May 2012 10:41:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-107420</guid>
		<description><![CDATA[sorry contain only ITE]]></description>
		<content:encoded><![CDATA[<p>sorry contain only ITE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 9783444184</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107419</link>
		<dc:creator>9783444184</dc:creator>
		<pubDate>Fri, 11 May 2012 10:40:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-107419</guid>
		<description><![CDATA[but i dont want which contain only string &#039;ITE&#039;]]></description>
		<content:encoded><![CDATA[<p>but i dont want which contain only string &#8216;ITE&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107407</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 10 May 2012 23:40:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-107407</guid>
		<description><![CDATA[&lt;i&gt;“c eval istrng=’Blank Descriptions,ITEM Invalid’”&lt;/i&gt;

It&#039;s not clear what that statement is supposed to do. The program won&#039;t compile unless the outer quotes are removed.

Then, it&#039;s not clear what your problem is. If the above source line is corrected, the program works.

&lt;i&gt;here i want search only ‘ITE’ string&lt;/i&gt;

That is what the program does. In both tests, it scans for &#039;ITE&#039; and finds it both times. The DSPLY executes for both tests.

The program seems to work exactly as you say you want it to work. What is the problem?

Tom]]></description>
		<content:encoded><![CDATA[<p><i>“c eval istrng=’Blank Descriptions,ITEM Invalid’”</i></p>
<p>It&#8217;s not clear what that statement is supposed to do. The program won&#8217;t compile unless the outer quotes are removed.</p>
<p>Then, it&#8217;s not clear what your problem is. If the above source line is corrected, the program works.</p>
<p><i>here i want search only ‘ITE’ string</i></p>
<p>That is what the program does. In both tests, it scans for &#8216;ITE&#8217; and finds it both times. The DSPLY executes for both tests.</p>
<p>The program seems to work exactly as you say you want it to work. What is the problem?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 9783444184</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107375</link>
		<dc:creator>9783444184</dc:creator>
		<pubDate>Thu, 10 May 2012 05:55:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-107375</guid>
		<description><![CDATA[Below i mention my example code here i want search only &#039;ITE&#039; string

DiSTRNG           s             50    varying inz
 D#strng           s             50    inz(&#039;ITE&#039;)
 D#num             s              2  0
 c
 &quot;c                   eval      istrng=&#039;Blank Descriptions,ITEM Invalid&#039;&quot;
 c                   if        %scan(%trim(#strng):istrng)&lt;&gt;0
 c     iSTRNG        dsply
 c                   endif
 11/3/2007
 c*                  eval      #num=%check((istrng):(#strng))
 c                   eval      #num=%check(%trim(#strng):%trim(istrng))
 c                   if        #num&gt;0
 c*                  if        %check(%trim(#strng):%trim(istrng))&lt;&gt;0
 c     iSTRNG        dsply
 c                   endif
 c                   eval      *inlr=*on]]></description>
		<content:encoded><![CDATA[<p>Below i mention my example code here i want search only &#8216;ITE&#8217; string</p>
<p>DiSTRNG           s             50    varying inz<br />
 D#strng           s             50    inz(&#8216;ITE&#8217;)<br />
 D#num             s              2  0<br />
 c<br />
 &#8220;c                   eval      istrng=&#8217;Blank Descriptions,ITEM Invalid&#8217;&#8221;<br />
 c                   if        %scan(%trim(#strng):istrng)&lt;&gt;0<br />
 c     iSTRNG        dsply<br />
 c                   endif<br />
 11/3/2007<br />
 c*                  eval      #num=%check((istrng):(#strng))<br />
 c                   eval      #num=%check(%trim(#strng):%trim(istrng))<br />
 c                   if        #num&gt;0<br />
 c*                  if        %check(%trim(#strng):%trim(istrng))&lt;&gt;0<br />
 c     iSTRNG        dsply<br />
 c                   endif<br />
 c                   eval      *inlr=*on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107365</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 09 May 2012 19:25:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-107365</guid>
		<description><![CDATA[&lt;i&gt;but it given same result like i search ‘ITE’ and it given ITEM also…..&lt;/i&gt;

That&#039;s what it&#039;s supposed to do. &quot;ITEM&quot; contains &quot;ITE&quot;, so it is a correct result.

ITERATE
CITE
WHITE
ARBITER

All of those contain &quot;ITE&quot;, so the scan functions will find &quot;ITE&quot; in all of them. Further, they can all be at the beginning, at the end or in the middle of a string or might be the entire string. There might be no blanks before or after the word. There might even be special characters instead of blanks:

(ARBITER)
WHITE--

And how about &quot;Item&quot;?

If you want to discard those results, then you need to program around it. There are a number of possible combinations. We have no idea what circumstances you might run into.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>but it given same result like i search ‘ITE’ and it given ITEM also…..</i></p>
<p>That&#8217;s what it&#8217;s supposed to do. &#8220;ITEM&#8221; contains &#8220;ITE&#8221;, so it is a correct result.</p>
<p>ITERATE<br />
CITE<br />
WHITE<br />
ARBITER</p>
<p>All of those contain &#8220;ITE&#8221;, so the scan functions will find &#8220;ITE&#8221; in all of them. Further, they can all be at the beginning, at the end or in the middle of a string or might be the entire string. There might be no blanks before or after the word. There might even be special characters instead of blanks:</p>
<p>(ARBITER)<br />
WHITE&#8211;</p>
<p>And how about &#8220;Item&#8221;?</p>
<p>If you want to discard those results, then you need to program around it. There are a number of possible combinations. We have no idea what circumstances you might run into.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107356</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Wed, 09 May 2012 15:01:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-107356</guid>
		<description><![CDATA[If your search pattern is &#039;ite&#039; - a subset of &#039;item&#039; - it will return a valid result, wanted or no.  If you follow BigKat&#039;s suggestion and prepend and append a blank to the search pattern - giving you &#039; ite &#039; - a valid result will occur only if that pattern is found.]]></description>
		<content:encoded><![CDATA[<p>If your search pattern is &#8216;ite&#8217; &#8211; a subset of &#8216;item&#8217; &#8211; it will return a valid result, wanted or no.  If you follow BigKat&#8217;s suggestion and prepend and append a blank to the search pattern &#8211; giving you &#8216; ite &#8216; &#8211; a valid result will occur only if that pattern is found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 9783444184</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107354</link>
		<dc:creator>9783444184</dc:creator>
		<pubDate>Wed, 09 May 2012 14:31:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-107354</guid>
		<description><![CDATA[but it given same result like i search &#039;ITE&#039; and it given ITEM also.....]]></description>
		<content:encoded><![CDATA[<p>but it given same result like i search &#8216;ITE&#8217; and it given ITEM also&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107349</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Wed, 09 May 2012 13:14:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-107349</guid>
		<description><![CDATA[scan for &#039; 321 &#039; instead of &#039;321&#039;]]></description>
		<content:encoded><![CDATA[<p>scan for &#8216; 321 &#8216; instead of &#8217;321&#8242;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 9783444184</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107344</link>
		<dc:creator>9783444184</dc:creator>
		<pubDate>Wed, 09 May 2012 11:32:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-107344</guid>
		<description><![CDATA[Can some one guide me ...how to find a exact word or string using &quot;Scan&quot; not a part of some other string.

say if i need 321 it should not give me 3210 nor 1321 it should only give me line containing string 321]]></description>
		<content:encoded><![CDATA[<p>Can some one guide me &#8230;how to find a exact word or string using &#8220;Scan&#8221; not a part of some other string.</p>
<p>say if i need 321 it should not give me 3210 nor 1321 it should only give me line containing string 321</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 9783444184</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scan-a-string/#comment-107343</link>
		<dc:creator>9783444184</dc:creator>
		<pubDate>Wed, 09 May 2012 11:08:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-107343</guid>
		<description><![CDATA[hi i am using scan function like that:
if        %scan(%trim(#strng):istrng)&lt;&gt;0  where #strng=ite 
now scan function scan in istring  if istrng has &quot;&lt;b&gt;item&lt;/b&gt;&quot;  then result came 
&lt;b&gt;like item no exist&lt;/b&gt;
but i want it search only &quot;&lt;b&gt;ite&lt;/b&gt;&quot;.]]></description>
		<content:encoded><![CDATA[<p>hi i am using scan function like that:<br />
if        %scan(%trim(#strng):istrng)&lt;&gt;0  where #strng=ite<br />
now scan function scan in istring  if istrng has &#8220;<b>item</b>&#8221;  then result came<br />
<b>like item no exist</b><br />
but i want it search only &#8220;<b>ite</b>&#8220;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.142 seconds using memcached
Object Caching 393/399 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 14:12:36 -->