 




<?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 &#8211; Result Set</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-result-set/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-result-set/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 11:47:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-result-set/#comment-74309</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 26 Feb 2010 01:56:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-74309</guid>
		<description><![CDATA[Yes, rather than returning a &quot;result set&quot;, you can simply return output or input/output parameters. This means that both PGMA and PGMB need to change their parameter lists to match, but if they&#039;re both yours and PGMB isn&#039;t already in use elsewhere, that should be easy.

Tom]]></description>
		<content:encoded><![CDATA[<p>Yes, rather than returning a &#8220;result set&#8221;, you can simply return output or input/output parameters. This means that both PGMA and PGMB need to change their parameter lists to match, but if they&#8217;re both yours and PGMB isn&#8217;t already in use elsewhere, that should be easy.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-result-set/#comment-74254</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 25 Feb 2010 09:50:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-74254</guid>
		<description><![CDATA[Add the datastructrue to the end of the parameter list of PGMB with the option no pass
Your stored procedure should still work fine.  In Pgmb move the actual datastructure to the output parameter if the %parm value indicates that the data structure was passed

The call in PGMA includes the  data structure as the last parameter in the call to PGMB]]></description>
		<content:encoded><![CDATA[<p>Add the datastructrue to the end of the parameter list of PGMB with the option no pass<br />
Your stored procedure should still work fine.  In Pgmb move the actual datastructure to the output parameter if the %parm value indicates that the data structure was passed</p>
<p>The call in PGMA includes the  data structure as the last parameter in the call to PGMB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: riccam</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-result-set/#comment-74070</link>
		<dc:creator>riccam</dc:creator>
		<pubDate>Mon, 22 Feb 2010 09:52:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-74070</guid>
		<description><![CDATA[Hi Tom, you are spot on with my requirement.

PGMB is an existing SQLRPGLE pgm which is called from a VB/.net front end application. PGMB returns a result set of mutliple records/rows. I am currently writing a &#039;green screen&#039; version, and should be able to use the existing stored procedures, but not sure how best to return mutli-rows to another SQLRPGLE or RPGLE pgm

It is not possible to use the Qualified DS in the passed parameters list, so how can I get the data back to PGMA without using external files or data queues?

There must be a straight forward way of returning data held in a Qualified DS to the calling pgm.]]></description>
		<content:encoded><![CDATA[<p>Hi Tom, you are spot on with my requirement.</p>
<p>PGMB is an existing SQLRPGLE pgm which is called from a VB/.net front end application. PGMB returns a result set of mutliple records/rows. I am currently writing a &#8216;green screen&#8217; version, and should be able to use the existing stored procedures, but not sure how best to return mutli-rows to another SQLRPGLE or RPGLE pgm</p>
<p>It is not possible to use the Qualified DS in the passed parameters list, so how can I get the data back to PGMA without using external files or data queues?</p>
<p>There must be a straight forward way of returning data held in a Qualified DS to the calling pgm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-result-set/#comment-73955</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 19 Feb 2010 00:59:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-73955</guid>
		<description><![CDATA[Just to be sure everything is clear...

&lt;ol&gt;
	&lt;li&gt;You have two SQL RPGLE programs.&lt;/li&gt;&lt;li&gt;Your first program issues a SQL CALL to the second.&lt;/li&gt;&lt;li&gt;You have a DS named ResultSet.&lt;/li&gt;&lt;li&gt;You don&#039;t actually want to return a &quot;result set&quot;. You simply chose the (somewhat confusing) name &quot;ResultSet&quot; for your DS.&lt;/li&gt;&lt;li&gt;The objective is to have the DS in the first program contain whatever data was placed into a DS of the same name in the second program after the SQL CALL completes.&lt;/li&gt;&lt;li&gt;However, you don&#039;t yet have any parameter defined to pass any part of the DS between the two programs&lt;/li&gt;
&lt;/ol&gt;

Do I have it fairly straight?

Tom]]></description>
		<content:encoded><![CDATA[<p>Just to be sure everything is clear&#8230;</p>
<ol>
<li>You have two SQL RPGLE programs.</li>
<li>Your first program issues a SQL CALL to the second.</li>
<li>You have a DS named ResultSet.</li>
<li>You don&#8217;t actually want to return a &#8220;result set&#8221;. You simply chose the (somewhat confusing) name &#8220;ResultSet&#8221; for your DS.</li>
<li>The objective is to have the DS in the first program contain whatever data was placed into a DS of the same name in the second program after the SQL CALL completes.</li>
<li>However, you don&#8217;t yet have any parameter defined to pass any part of the DS between the two programs</li>
</ol>
<p>Do I have it fairly straight?</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 309/315 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 13:02:57 -->