 




<?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: How can we check for a particular monmsg in rpgle free format</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 07:47:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/#comment-85981</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 31 Dec 2010 12:37:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-85981</guid>
		<description><![CDATA[&lt;i&gt;the API error data structure is populated at command execution...&lt;/i&gt;

The same will happen with QCMDEXC. And neither of them need to be prototyped -- the CALL op-code allows the (E) extender, and it&#039;s the (E) extender that provides the PSDS exception data. Of course, QCMDEXC can also be prototyped if desired.

However, QCAPCMD does have other advantages over QCMDEXC. But it&#039;s not as easy to use and there are many cases where QCMDEXC is all that&#039;s needed.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>the API error data structure is populated at command execution&#8230;</i></p>
<p>The same will happen with QCMDEXC. And neither of them need to be prototyped &#8212; the CALL op-code allows the (E) extender, and it&#8217;s the (E) extender that provides the PSDS exception data. Of course, QCMDEXC can also be prototyped if desired.</p>
<p>However, QCAPCMD does have other advantages over QCMDEXC. But it&#8217;s not as easy to use and there are many cases where QCMDEXC is all that&#8217;s needed.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/#comment-85953</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Thu, 30 Dec 2010 15:20:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-85953</guid>
		<description><![CDATA[Am I correct in assuming &lt;b&gt;CmdExecution&lt;/b&gt; is a prototype for &lt;b&gt;QCMDEXC&lt;/b&gt;?  I would recommend using QCAPCMD if you need to execute commands in an RPG/ILE program - the API error data structure is populated at command execution and messages can be retrieved from same.]]></description>
		<content:encoded><![CDATA[<p>Am I correct in assuming <b>CmdExecution</b> is a prototype for <b>QCMDEXC</b>?  I would recommend using QCAPCMD if you need to execute commands in an RPG/ILE program &#8211; the API error data structure is populated at command execution and messages can be retrieved from same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/#comment-85909</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Wed, 29 Dec 2010 20:13:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-85909</guid>
		<description><![CDATA[Maybe I wasn&#039;t too clear.  When you code this: &quot;Callp(e)&quot; you are telling the program to NOT stop if there is an error message but to put the error message in the program status data structure.  Immediately after the &quot;Callp(e)&quot; you check the program status data structure positions 40-46 for an error message and then do whatever processing you need for that particular message.]]></description>
		<content:encoded><![CDATA[<p>Maybe I wasn&#8217;t too clear.  When you code this: &#8220;Callp(e)&#8221; you are telling the program to NOT stop if there is an error message but to put the error message in the program status data structure.  Immediately after the &#8220;Callp(e)&#8221; you check the program status data structure positions 40-46 for an error message and then do whatever processing you need for that particular message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/#comment-85895</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 29 Dec 2010 11:50:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-85895</guid>
		<description><![CDATA[&lt;i&gt;In that case QTEMP is not present in our library list by default.&lt;/i&gt;

I understand that it&#039;s not in your library list. What I wonder is why an RPG program needs QTEMP in the library list. A library doesn&#039;t have to be in a library list in order to use the library. You can use QTEMP whether it&#039;s in the list or not, just like any other library.

Also, Vatchy already said that the error message identifier is in positions 40-46 of the program status data structure.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>In that case QTEMP is not present in our library list by default.</i></p>
<p>I understand that it&#8217;s not in your library list. What I wonder is why an RPG program needs QTEMP in the library list. A library doesn&#8217;t have to be in a library list in order to use the library. You can use QTEMP whether it&#8217;s in the list or not, just like any other library.</p>
<p>Also, Vatchy already said that the error message identifier is in positions 40-46 of the program status data structure.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viveksharma</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/#comment-85890</link>
		<dc:creator>viveksharma</dc:creator>
		<pubDate>Wed, 29 Dec 2010 07:08:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-85890</guid>
		<description><![CDATA[I am accessing my as/400 program from web application through a stored procedure. In that case QTEMP is not present in our library list by default. So I was trying to add it in my RPG ILE free format code. Could anyone please help me on how how can we handle various MonMsg in our RPG ILE free format code? It would be of great help if i am given some sample code to refer.]]></description>
		<content:encoded><![CDATA[<p>I am accessing my as/400 program from web application through a stored procedure. In that case QTEMP is not present in our library list by default. So I was trying to add it in my RPG ILE free format code. Could anyone please help me on how how can we handle various MonMsg in our RPG ILE free format code? It would be of great help if i am given some sample code to refer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/#comment-85873</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 28 Dec 2010 20:38:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-85873</guid>
		<description><![CDATA[&lt;i&gt;you shouldn’t have to add QTEMP to your library list - it should already be there.&lt;/i&gt;

That depends on how the site sets up their library lists. Personally, I prefer having QTEMP at the top of user library lists.

However, I also agree that it shouldn&#039;t be necessary to add QTEMP. Not because it might already be in the list, but because an explicit addition of QTEMP implies that QTEMP will be used. And if QTEMP is going to be used, then it can be used through explicit qualification.

If, for example, you want to want to open a file named MYFILE in library QTEMP, then open &quot;QTEMP/MYFILE&quot;. Don&#039;t rely on the library list. Just tell it to use QTEMP directly.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>you shouldn’t have to add QTEMP to your library list &#8211; it should already be there.</i></p>
<p>That depends on how the site sets up their library lists. Personally, I prefer having QTEMP at the top of user library lists.</p>
<p>However, I also agree that it shouldn&#8217;t be necessary to add QTEMP. Not because it might already be in the list, but because an explicit addition of QTEMP implies that QTEMP will be used. And if QTEMP is going to be used, then it can be used through explicit qualification.</p>
<p>If, for example, you want to want to open a file named MYFILE in library QTEMP, then open &#8220;QTEMP/MYFILE&#8221;. Don&#8217;t rely on the library list. Just tell it to use QTEMP directly.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-can-we-check-for-a-particular-monmsg-in-rpgle-free-format/#comment-85849</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Tue, 28 Dec 2010 12:41:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-85849</guid>
		<description><![CDATA[Well, you shouldn&#039;t have to add QTEMP to your library list - it should already be there.  However, you can check the program status data structure for the error message received; it will show you the error message in positions 40-46.]]></description>
		<content:encoded><![CDATA[<p>Well, you shouldn&#8217;t have to add QTEMP to your library list &#8211; it should already be there.  However, you can check the program status data structure for the error message received; it will show you the error message in positions 40-46.</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.025 seconds using memcached
Object Caching 349/355 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 07:47:28 -->