<?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: What&#8217;s an alternative to %SCAN?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/whats-an-alternative-to-scan/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/whats-an-alternative-to-scan/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 16:59:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/whats-an-alternative-to-scan/#comment-77416</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 22 May 2010 00:54:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-77416</guid>
		<description><![CDATA[&lt;i&gt;...thanks for the reply.&lt;/i&gt;

You&#039;re welcome. Happy to help, and thank you for returning to post a followup.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;thanks for the reply.</i></p>
<p>You&#8217;re welcome. Happy to help, and thank you for returning to post a followup.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogeybetsy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/whats-an-alternative-to-scan/#comment-77409</link>
		<dc:creator>bogeybetsy</dc:creator>
		<pubDate>Fri, 21 May 2010 17:37:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-77409</guid>
		<description><![CDATA[Hi Tom,  thanks for the reply.  You were right about the %Xlate.  We found out that the problem was not the %SCAN.  There was some other new code inserted that caused the program to run for about 22 hours.  The %SCAN did just fine.   But I did replace the %SCAN code with the %XLATE.  There was a whole new subroutine using %SCAN.  With %XLATE, there were only a few lines (3 statements).  Thanks very much for your help!]]></description>
		<content:encoded><![CDATA[<p>Hi Tom,  thanks for the reply.  You were right about the %Xlate.  We found out that the problem was not the %SCAN.  There was some other new code inserted that caused the program to run for about 22 hours.  The %SCAN did just fine.   But I did replace the %SCAN code with the %XLATE.  There was a whole new subroutine using %SCAN.  With %XLATE, there were only a few lines (3 statements).  Thanks very much for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/whats-an-alternative-to-scan/#comment-77054</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 12 May 2010 21:23:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-77054</guid>
		<description><![CDATA[First, does the field &lt;b&gt;have to be&lt;/b&gt; 5000 bytes or could it be variable length? Is the value often less than 5000 long? (I.e., is it right-padded with blanks? Do you know how long the value is?)

Next, have you tried a simple %xlate() instead? And since this is a file field, why not just read it through a LF that applies a basic translation table (the DDS TRNTBL() keyword) to the field that translates the hex values to blanks?

By moving a pointer through the field, you could probably make good use of the strpbrk() C run-time function in a proc that starts with the pointer at position 1 and resets it in a loop every time it gets a hit. You might also use the Test and Replace (TESTRPL) MI builtin function, but I&#039;d want to know if strpbrk() or TESTRPL is faster.

Or any of the Translate (XLATE), Translate Bytes (XLATEB), Translate Bytes One Byte at a Time (XLATEB1), Translate Multiple Bytes (XLATEMB) or Translate with Table (XLATEWT) MI builtins might be useful.

I&#039;d start by seeing how %xlate worked. Then I&#039;d see about using a LF to do the translation for me.

Tom]]></description>
		<content:encoded><![CDATA[<p>First, does the field <b>have to be</b> 5000 bytes or could it be variable length? Is the value often less than 5000 long? (I.e., is it right-padded with blanks? Do you know how long the value is?)</p>
<p>Next, have you tried a simple %xlate() instead? And since this is a file field, why not just read it through a LF that applies a basic translation table (the DDS TRNTBL() keyword) to the field that translates the hex values to blanks?</p>
<p>By moving a pointer through the field, you could probably make good use of the strpbrk() C run-time function in a proc that starts with the pointer at position 1 and resets it in a loop every time it gets a hit. You might also use the Test and Replace (TESTRPL) MI builtin function, but I&#8217;d want to know if strpbrk() or TESTRPL is faster.</p>
<p>Or any of the Translate (XLATE), Translate Bytes (XLATEB), Translate Bytes One Byte at a Time (XLATEB1), Translate Multiple Bytes (XLATEMB) or Translate with Table (XLATEWT) MI builtins might be useful.</p>
<p>I&#8217;d start by seeing how %xlate worked. Then I&#8217;d see about using a LF to do the translation for me.</p>
<p>Tom</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.036 seconds using memcached
Object Caching 295/301 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 17:45:01 -->