 




<?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: SQLRPGLE Cursors and Recursion</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-cursors-and-recursion/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-cursors-and-recursion/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 01:03:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: dcantwell</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-cursors-and-recursion/#comment-70773</link>
		<dc:creator>dcantwell</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:08:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-70773</guid>
		<description><![CDATA[Hmm.... Looks like this isn&#039;t going to work the way I want it to. 

It&#039;s a little more elaborate than I&#039;d like it to be.  I wanted all the processing handled inside of the same program.  I might just have to skip using SQLRPGLE and try something else. 

Thanks for your help everyone!]]></description>
		<content:encoded><![CDATA[<p>Hmm&#8230;. Looks like this isn&#8217;t going to work the way I want it to. </p>
<p>It&#8217;s a little more elaborate than I&#8217;d like it to be.  I wanted all the processing handled inside of the same program.  I might just have to skip using SQLRPGLE and try something else. </p>
<p>Thanks for your help everyone!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-cursors-and-recursion/#comment-70733</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 21 Nov 2009 11:40:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-70733</guid>
		<description><![CDATA[Continuing on .. seperate cursors for levels would be necessary because when you return to a higher level you expect to pick up by fetching the next row from that level&#039;s cursor.]]></description>
		<content:encoded><![CDATA[<p>Continuing on .. seperate cursors for levels would be necessary because when you return to a higher level you expect to pick up by fetching the next row from that level&#8217;s cursor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-cursors-and-recursion/#comment-70732</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 21 Nov 2009 11:38:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-70732</guid>
		<description><![CDATA[no..but if you pass one more variable .. level - add one to it each level down and subtract one whenever you complete a level
and have seperate code based on a select where Level structure with 10 seperate cursors CursorLevel1 .. say to CursorLevel10.
You would then support 10 levels of recursion.

Phil]]></description>
		<content:encoded><![CDATA[<p>no..but if you pass one more variable .. level &#8211; add one to it each level down and subtract one whenever you complete a level<br />
and have seperate code based on a select where Level structure with 10 seperate cursors CursorLevel1 .. say to CursorLevel10.<br />
You would then support 10 levels of recursion.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-cursors-and-recursion/#comment-70721</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 20 Nov 2009 23:58:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-70721</guid>
		<description><![CDATA[Hmmm... that bit about recursive program references assumes that pname comes out of ProgRec by way of &quot;whfnam&quot;...

Tom]]></description>
		<content:encoded><![CDATA[<p>Hmmm&#8230; that bit about recursive program references assumes that pname comes out of ProgRec by way of &#8220;whfnam&#8221;&#8230;</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-cursors-and-recursion/#comment-70720</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 20 Nov 2009 23:50:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-70720</guid>
		<description><![CDATA[I hope you don&#039;t run across any recursive program references -- there&#039;s no way out that I can see if you do.

Assuming that a PR for printPrograms() would reference it as a proc...

I&#039;m not at all confident that this would work. I would probably try having printPrograms() referencing an EXTPGM() rather than an internal (recursive) proc. I&#039;d have that program run in a *NEW activation group to see how much control I could have over the SQL definitions and their relationships to available boundaries. By forcing each level into a new AG, you might be able to have scoping control over everything. Maybe.

But you still need to ensure that there are no recursive program references in DAVE.

Tom]]></description>
		<content:encoded><![CDATA[<p>I hope you don&#8217;t run across any recursive program references &#8212; there&#8217;s no way out that I can see if you do.</p>
<p>Assuming that a PR for printPrograms() would reference it as a proc&#8230;</p>
<p>I&#8217;m not at all confident that this would work. I would probably try having printPrograms() referencing an EXTPGM() rather than an internal (recursive) proc. I&#8217;d have that program run in a *NEW activation group to see how much control I could have over the SQL definitions and their relationships to available boundaries. By forcing each level into a new AG, you might be able to have scoping control over everything. Maybe.</p>
<p>But you still need to ensure that there are no recursive program references in DAVE.</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 6/9 queries in 0.014 seconds using memcached
Object Caching 324/327 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 01:30:39 -->