 




<?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: SQL in an SQLRPGLE program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: koohiisan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62446</link>
		<dc:creator>koohiisan</dc:creator>
		<pubDate>Mon, 20 Apr 2009 15:11:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-62446</guid>
		<description><![CDATA[I also use *INLR at the start of many of my programs.  I always comment it to explain why, in case someone not familiar with the effects of that on the cycle reviews the code for some reason.

I also do it so I can use return by itself in the program  I suppose I feel warm/fuzzy not having to repetitively type *INLR = *off before every return in my program.   ^_^]]></description>
		<content:encoded><![CDATA[<p>I also use *INLR at the start of many of my programs.  I always comment it to explain why, in case someone not familiar with the effects of that on the cycle reviews the code for some reason.</p>
<p>I also do it so I can use return by itself in the program  I suppose I feel warm/fuzzy not having to repetitively type *INLR = *off before every return in my program.   ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cwc</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62442</link>
		<dc:creator>cwc</dc:creator>
		<pubDate>Mon, 20 Apr 2009 14:29:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-62442</guid>
		<description><![CDATA[With 6.1 of IBM i (a.k.a., V6R1 of OS/400), a callable program can be created without the cycle, by using the MAIN keyword and specifying which procedure will be the entry point of the program.  
&lt;a href=&quot;http://www.mcpressonline.com/programming/rpg/v6r1-rpg-enhancements.html&quot;&gt;http://www.mcpressonline.com/programming/rpg/v6r1-rpg-enhancements.html&lt;/a&gt;
I&#039;d start using, but we&#039;re not at 6.1 yet - hopefully, one day soon.]]></description>
		<content:encoded><![CDATA[<p>With 6.1 of IBM i (a.k.a., V6R1 of OS/400), a callable program can be created without the cycle, by using the MAIN keyword and specifying which procedure will be the entry point of the program.<br />
<a href="http://www.mcpressonline.com/programming/rpg/v6r1-rpg-enhancements.html">http://www.mcpressonline.com/programming/rpg/v6r1-rpg-enhancements.html</a><br />
I&#8217;d start using, but we&#8217;re not at 6.1 yet &#8211; hopefully, one day soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: woodengineer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62401</link>
		<dc:creator>woodengineer</dc:creator>
		<pubDate>Fri, 17 Apr 2009 15:26:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-62401</guid>
		<description><![CDATA[Thanks for the clarification, Big Kat.
I should have known that.
It makes a lot of sense.
It also clears up the cause of my problem.  Well . . . this one at least.  ;-)]]></description>
		<content:encoded><![CDATA[<p>Thanks for the clarification, Big Kat.<br />
I should have known that.<br />
It makes a lot of sense.<br />
It also clears up the cause of my problem.  Well . . . this one at least.  <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62393</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Fri, 17 Apr 2009 14:21:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-62393</guid>
		<description><![CDATA[It really is just a matter of being able to issue a return anywhere in the program that it is necessary, without having to have eval *INLR= *ON all over the place.   But yeah, it is just a matter of coding style.  The important thing to this thread, is that it is NOT in *INZSR, as that makes the cycle think you are aborting the program.]]></description>
		<content:encoded><![CDATA[<p>It really is just a matter of being able to issue a return anywhere in the program that it is necessary, without having to have eval *INLR= *ON all over the place.   But yeah, it is just a matter of coding style.  The important thing to this thread, is that it is NOT in *INZSR, as that makes the cycle think you are aborting the program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62387</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Fri, 17 Apr 2009 13:45:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-62387</guid>
		<description><![CDATA[Hi,

I find it really strange to see the *INLR at the start of the program, but if it works for you, why not?  I guess eventually the *INLR will disappear and get replaced with a less cycle-oriented opcode.  Maybe there&#039;ll even be a CYCLE or NOCYCLE keyword for the H-SPEC...

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I find it really strange to see the *INLR at the start of the program, but if it works for you, why not?  I guess eventually the *INLR will disappear and get replaced with a less cycle-oriented opcode.  Maybe there&#8217;ll even be a CYCLE or NOCYCLE keyword for the H-SPEC&#8230;</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62378</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Fri, 17 Apr 2009 11:34:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-62378</guid>
		<description><![CDATA[this is part of a program I am working on now and it works just fine
&lt;pre&gt;
 * Main Program                                 
c                   eval      *inlr = *on       
c                   dou       #exit             
c                   exsr      openCsr           
c                   exsr      clearSfl          
c                   exsr      loadSfl           
c                   dou       #reload or #exit  
c                   exsr      displaySfl        
c                   enddo                       
c                   exsr      closeCsr          
c                   enddo                       
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>this is part of a program I am working on now and it works just fine</p>
<pre>
 * Main Program                                 
c                   eval      *inlr = *on       
c                   dou       #exit             
c                   exsr      openCsr           
c                   exsr      clearSfl          
c                   exsr      loadSfl           
c                   dou       #reload or #exit  
c                   exsr      displaySfl        
c                   enddo                       
c                   exsr      closeCsr          
c                   enddo                       
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62377</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Fri, 17 Apr 2009 11:31:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-62377</guid>
		<description><![CDATA[If you set *INLRon in *INZSR, the system will immediately end the program (due to the cycle) after initialization, and BEFORE any of the calculations (including the SQL) are run.  Setting on *INLR in *INZSR is like aborting the program because something failed to initialize.]]></description>
		<content:encoded><![CDATA[<p>If you set *INLRon in *INZSR, the system will immediately end the program (due to the cycle) after initialization, and BEFORE any of the calculations (including the SQL) are run.  Setting on *INLR in *INZSR is like aborting the program because something failed to initialize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: woodengineer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62345</link>
		<dc:creator>woodengineer</dc:creator>
		<pubDate>Thu, 16 Apr 2009 16:17:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-62345</guid>
		<description><![CDATA[Hello BigKat,

I&#039;m speaking from experience here, as in this week.  As soon as I moved the seton LR to occur after the select statement, data was returned.  That was the only change I made to the program.

Perhaps you are setting on LR after your select statement.

I was very suprised because I also thought *INLR only effected files accessed in the RPG cycle.

By the say, the program seton LR in the *INZSR subroutine.  Maybe that is the cause.

In any case, I&#039;d like to fully understand this.]]></description>
		<content:encoded><![CDATA[<p>Hello BigKat,</p>
<p>I&#8217;m speaking from experience here, as in this week.  As soon as I moved the seton LR to occur after the select statement, data was returned.  That was the only change I made to the program.</p>
<p>Perhaps you are setting on LR after your select statement.</p>
<p>I was very suprised because I also thought *INLR only effected files accessed in the RPG cycle.</p>
<p>By the say, the program seton LR in the *INZSR subroutine.  Maybe that is the cause.</p>
<p>In any case, I&#8217;d like to fully understand this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62329</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Thu, 16 Apr 2009 11:53:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-62329</guid>
		<description><![CDATA[Not true, WoodEngineer

*inlr only affects the &quot;cycle&quot; operations.  (most modern programs run in one cycle, just looping around in the calcs until finished.)

I routinely set *inlr = *on as the first calc in my program, and then READ, CHAIN, exec sql, etc.  That way, whenever I encounter a situation that says my program is finished, I can just code a RETURN and everything is closed up and ends.]]></description>
		<content:encoded><![CDATA[<p>Not true, WoodEngineer</p>
<p>*inlr only affects the &#8220;cycle&#8221; operations.  (most modern programs run in one cycle, just looping around in the calcs until finished.)</p>
<p>I routinely set *inlr = *on as the first calc in my program, and then READ, CHAIN, exec sql, etc.  That way, whenever I encounter a situation that says my program is finished, I can just code a RETURN and everything is closed up and ends.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: woodengineer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-in-an-sqlrpgle-program/#comment-62298</link>
		<dc:creator>woodengineer</dc:creator>
		<pubDate>Wed, 15 Apr 2009 18:42:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-62298</guid>
		<description><![CDATA[Be sure *INLR is not on.  If *INLR = *On, the select statement will not return any records.]]></description>
		<content:encoded><![CDATA[<p>Be sure *INLR is not on.  If *INLR = *On, the select statement will not return any records.</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 6/9 queries in 0.012 seconds using memcached
Object Caching 398/401 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 08:28:39 -->