<?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: Call RPGLE Program from RPG Program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/call-rpgle-program-from-rpg-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/call-rpgle-program-from-rpg-program/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 01:14:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/call-rpgle-program-from-rpg-program/#comment-77009</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 11 May 2010 15:31:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-77009</guid>
		<description><![CDATA[&lt;i&gt;One of the reason you could not call a RPGLE program from a RPG is that the first one is an ILE program wich receives parameters not supported by RPG III like read only reference (CONST) and by VALUE.&lt;/i&gt;

An ILE RPG &quot;program&quot; cannot have parameters passed by &lt;b&gt;VALUE&lt;/b&gt;.

And a parameter passed as &lt;b&gt;CONST&lt;/b&gt; does not need to be passed as a &#039;constant&#039;; even CL can call a program with a CONST parameter. The CONST attribute is technically more for the compiler than the developer. The prototype in the calling program does not have to specify CONST, so OPM RPG has no problem.

Martin&#039;s right. We need to know what the error is and what the calling code looks like. It should look like the code for any other CALL.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>One of the reason you could not call a RPGLE program from a RPG is that the first one is an ILE program wich receives parameters not supported by RPG III like read only reference (CONST) and by VALUE.</i></p>
<p>An ILE RPG &#8220;program&#8221; cannot have parameters passed by <b>VALUE</b>.</p>
<p>And a parameter passed as <b>CONST</b> does not need to be passed as a &#8216;constant&#8217;; even CL can call a program with a CONST parameter. The CONST attribute is technically more for the compiler than the developer. The prototype in the calling program does not have to specify CONST, so OPM RPG has no problem.</p>
<p>Martin&#8217;s right. We need to know what the error is and what the calling code looks like. It should look like the code for any other CALL.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alopez1571</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/call-rpgle-program-from-rpg-program/#comment-55419</link>
		<dc:creator>alopez1571</dc:creator>
		<pubDate>Fri, 01 Aug 2008 16:26:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-55419</guid>
		<description><![CDATA[One of the reason you could not call a RPGLE program from a RPG is that the first one is an ILE program wich receives parameters not supported by RPG III like read only reference (&lt;b&gt;CONST&lt;/b&gt;) and by &lt;b&gt;VALUE&lt;/b&gt;.

If so, you have to create a wrapper ILE program, receiving  parameters in the way RPG III can handle (by reference) and forwarding them to original RPGLE program.   The parameter by reference is the default mode, they do not have any special keyword, the read only by reference has the CONST keywoerd wich mean it can not be changed in the called program.]]></description>
		<content:encoded><![CDATA[<p>One of the reason you could not call a RPGLE program from a RPG is that the first one is an ILE program wich receives parameters not supported by RPG III like read only reference (<b>CONST</b>) and by <b>VALUE</b>.</p>
<p>If so, you have to create a wrapper ILE program, receiving  parameters in the way RPG III can handle (by reference) and forwarding them to original RPGLE program.   The parameter by reference is the default mode, they do not have any special keyword, the read only by reference has the CONST keywoerd wich mean it can not be changed in the called program.</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.041 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 04:15:22 -->