<?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: LOOKUP</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 11:12:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: bogeybetsy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-65642</link>
		<dc:creator>bogeybetsy</dc:creator>
		<pubDate>Thu, 16 Jul 2009 16:38:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-65642</guid>
		<description><![CDATA[Hey Sloopy,

I saw your tip about the back loading of arrays.  I applied it and I got a program that runs for about an hour down to about 15 minutes.  That was an awesome tip!  Thanks!

Now...

...In other words it will not change on an unsuccessful LOOKUP. You can use NOT %Found to test for a failure to find correct index.:...

For LOOKUP, the index value becomes 1 if it is unsuccessful.  For %LookUp, the index value becomes 0.

Regards,

Alln]]></description>
		<content:encoded><![CDATA[<p>Hey Sloopy,</p>
<p>I saw your tip about the back loading of arrays.  I applied it and I got a program that runs for about an hour down to about 15 minutes.  That was an awesome tip!  Thanks!</p>
<p>Now&#8230;</p>
<p>&#8230;In other words it will not change on an unsuccessful LOOKUP. You can use NOT %Found to test for a failure to find correct index.:&#8230;</p>
<p>For LOOKUP, the index value becomes 1 if it is unsuccessful.  For %LookUp, the index value becomes 0.</p>
<p>Regards,</p>
<p>Alln</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sloopy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-62337</link>
		<dc:creator>sloopy</dc:creator>
		<pubDate>Thu, 16 Apr 2009 15:39:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-62337</guid>
		<description><![CDATA[I got here before you for a change, Cwc!]]></description>
		<content:encoded><![CDATA[<p>I got here before you for a change, Cwc!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cwc</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-62275</link>
		<dc:creator>cwc</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:44:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-62275</guid>
		<description><![CDATA[Sorry Sloopy, I didn&#039;t see that you had already elaborated on this.]]></description>
		<content:encoded><![CDATA[<p>Sorry Sloopy, I didn&#8217;t see that you had already elaborated on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cwc</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-62274</link>
		<dc:creator>cwc</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:42:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-62274</guid>
		<description><![CDATA[With either format, the plus sign to continue a line isn&#039;t needed - but with free format, the compiler does need a semi colon to mark the end of each statement.]]></description>
		<content:encoded><![CDATA[<p>With either format, the plus sign to continue a line isn&#8217;t needed &#8211; but with free format, the compiler does need a semi colon to mark the end of each statement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sloopy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-62265</link>
		<dc:creator>sloopy</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:59:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-62265</guid>
		<description><![CDATA[You don&#039;t need a plus sign in fixed or free-format RPG to extend code to new lines.

In /free format code, I have noticed that often the code becomes quite untidy and difficult to read - this is not a fault with free-format code, but in the attitude of the writer.

In fixed-column AND in free-format, I tend to align code when it extends to other lines - example below (which will be mucked up by the text editor!)....

&lt;pre&gt;
       Eval      RtnData = EditFld( wkData        
                                  : dbffldb (I)   
                                  : wkFldType     
                                  : dbffldd (I)   
                                  : dbffldp (I)   
                                  : wkEdtCde      
                                  : &#039;    &#039;      ) 
&lt;/pre&gt;

Sloopy]]></description>
		<content:encoded><![CDATA[<p>You don&#8217;t need a plus sign in fixed or free-format RPG to extend code to new lines.</p>
<p>In /free format code, I have noticed that often the code becomes quite untidy and difficult to read &#8211; this is not a fault with free-format code, but in the attitude of the writer.</p>
<p>In fixed-column AND in free-format, I tend to align code when it extends to other lines &#8211; example below (which will be mucked up by the text editor!)&#8230;.</p>
<pre>
       Eval      RtnData = EditFld( wkData        
                                  : dbffldb (I)   
                                  : wkFldType     
                                  : dbffldd (I)   
                                  : dbffldp (I)   
                                  : wkEdtCde      
                                  : '    '      ) 
</pre>
<p>Sloopy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: woodengineer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-62217</link>
		<dc:creator>woodengineer</dc:creator>
		<pubDate>Tue, 14 Apr 2009 16:16:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-62217</guid>
		<description><![CDATA[I agree with CWC - be /free if you can.
If that is not allowed in your shop I believe you can use the + (plus sign) to extend an EVAL statement to a second, third, fourth line as needed.]]></description>
		<content:encoded><![CDATA[<p>I agree with CWC &#8211; be /free if you can.<br />
If that is not allowed in your shop I believe you can use the + (plus sign) to extend an EVAL statement to a second, third, fourth line as needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cwc</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-62176</link>
		<dc:creator>cwc</dc:creator>
		<pubDate>Mon, 13 Apr 2009 14:21:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-62176</guid>
		<description><![CDATA[To confirm, all BIFs will also work in fixed format via the EVAL operation, although you would likely run into the dreaded column cram with a few of them, depending on the number of parameters and how long your variable names are.  So, I&#039;d rather be /Free.]]></description>
		<content:encoded><![CDATA[<p>To confirm, all BIFs will also work in fixed format via the EVAL operation, although you would likely run into the dreaded column cram with a few of them, depending on the number of parameters and how long your variable names are.  So, I&#8217;d rather be /Free.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: woodengineer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/lookup-2/#comment-62097</link>
		<dc:creator>woodengineer</dc:creator>
		<pubDate>Thu, 09 Apr 2009 15:49:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-62097</guid>
		<description><![CDATA[If you like built-in functions, try %lookup.
For example, in free form RPG,  X = %lookup(searchValue : Array)
X will be zero if searchValue is not found.
I think this also works with an EVAL statement in fixed format RPG.]]></description>
		<content:encoded><![CDATA[<p>If you like built-in functions, try %lookup.<br />
For example, in free form RPG,  X = %lookup(searchValue : Array)<br />
X will be zero if searchValue is not found.<br />
I think this also works with an EVAL statement in fixed format RPG.</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.040 seconds using memcached
Object Caching 365/371 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 12:30:53 -->