<?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: Parameter Passing: RPGLE to CMD to RPGLE</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 08:35:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116790</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 27 Feb 2013 14:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116790</guid>
		<description><![CDATA[You can execute a command easily enough by passing the command string to the QCMDEXC API. But there is no memory connection that allows a parameter value to be returned. No variables can be passed. The &lt;EM&gt;variable values&lt;/EM&gt; themselves must be inserted into the command string. If a command must be executed, and a parameter value must be returned, and the CPP can&#039;t simply be CALLed, then a simple CL procedure can be compiled around the command and made a part of the RPG program as an additional module. The CL procedure can pass the parameter value back and forth to RPG. -- Tom]]></description>
		<content:encoded><![CDATA[<p>You can execute a command easily enough by passing the command string to the QCMDEXC API. But there is no memory connection that allows a parameter value to be returned. No variables can be passed. The <em>variable values</em> themselves must be inserted into the command string. If a command must be executed, and a parameter value must be returned, and the CPP can&#8217;t simply be CALLed, then a simple CL procedure can be compiled around the command and made a part of the RPG program as an additional module. The CL procedure can pass the parameter value back and forth to RPG. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ShatteredRaven77</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116492</link>
		<dc:creator>ShatteredRaven77</dc:creator>
		<pubDate>Wed, 20 Feb 2013 12:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116492</guid>
		<description><![CDATA[I was just trying to execute a small command within an RPGLE when it starts up and bypass the use of any CL or DSPF.]]></description>
		<content:encoded><![CDATA[<p>I was just trying to execute a small command within an RPGLE when it starts up and bypass the use of any CL or DSPF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116480</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 20 Feb 2013 05:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116480</guid>
		<description><![CDATA[If you want the value in RPGLE, just call the CPP directly. Skip the command. -- Tom]]></description>
		<content:encoded><![CDATA[<p>If you want the value in RPGLE, just call the CPP directly. Skip the command. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116479</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 20 Feb 2013 05:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/parameter-passing-rpgle-to-cmd-to-rpgle/#comment-116479</guid>
		<description><![CDATA[It doesn&#039;t make a lot of sense. If you are expecting a value to be returned from a command, the command parameter needs to be defined with RTNVAL(*YES). And when RTNVAL(*YES) is specified, the command can&#039;t have *BATCH, *INTERACT or *EXEC specified for the CRTCMD ALLOW() parameter. A parameter can return a value when it is compiled in a program, but not when it&#039;s executed as a stand-alone command. Make the command part of a compiled CL module. -- Tom]]></description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t make a lot of sense. If you are expecting a value to be returned from a command, the command parameter needs to be defined with RTNVAL(*YES). And when RTNVAL(*YES) is specified, the command can&#8217;t have *BATCH, *INTERACT or *EXEC specified for the CRTCMD ALLOW() parameter. A parameter can return a value when it is compiled in a program, but not when it&#8217;s executed as a stand-alone command. Make the command part of a compiled CL module. &#8212; 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/8 queries in 0.034 seconds using memcached
Object Caching 311/312 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 08:50:20 -->