 




<?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: Writing system errors to QPJOBLOG system file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/writing-system-errors-to-qpjoblog-system-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/writing-system-errors-to-qpjoblog-system-file/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 07:06:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/writing-system-errors-to-qpjoblog-system-file/#comment-70663</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 20 Nov 2009 06:09:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-70663</guid>
		<description><![CDATA[It&#039;s not clear what the situation is.

If it&#039;s a &quot;system error&quot;, how are you detecting it? If it&#039;s an error that occurs in your program, all you should need to do is not handle it -- it will be handled by a default handler and propagate up to the job&#039;s external message queue, which is what the &quot;job log&quot; is.

If it&#039;s an error that is returned in an error structure from an API, then you&#039;ll need to send it as a message if you want it logged. The short story is simply that you&#039;ll send a program message to the *EXT program message queue. See the &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/QMHSNDPM.htm&quot;&gt;Send Program Message (QMHSNDPM) API&lt;/a&gt; for details. And note that you&#039;ll probably want to send it as a *DIAG message.

Tom]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s not clear what the situation is.</p>
<p>If it&#8217;s a &#8220;system error&#8221;, how are you detecting it? If it&#8217;s an error that occurs in your program, all you should need to do is not handle it &#8212; it will be handled by a default handler and propagate up to the job&#8217;s external message queue, which is what the &#8220;job log&#8221; is.</p>
<p>If it&#8217;s an error that is returned in an error structure from an API, then you&#8217;ll need to send it as a message if you want it logged. The short story is simply that you&#8217;ll send a program message to the *EXT program message queue. See the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/QMHSNDPM.htm">Send Program Message (QMHSNDPM) API</a> for details. And note that you&#8217;ll probably want to send it as a *DIAG message.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: astradyne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/writing-system-errors-to-qpjoblog-system-file/#comment-41800</link>
		<dc:creator>astradyne</dc:creator>
		<pubDate>Tue, 15 Nov 2005 05:38:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-41800</guid>
		<description><![CDATA[You can write to the joblog using the system API &quot;Qp0zLprintf&quot; (documented within the Inforcenter).

I have a sub-procedure that I use (WrtJoblog) which encapsulates a call to this API and can be called from any ILE program.  I also have a command front end for a CL program that calls the sub-procedure so I can write messages to the job log at will.

If you want the source for the procedure, prototypes, commands, etc, let me know and I&#039;ll send it off list.

Jonathan]]></description>
		<content:encoded><![CDATA[<p>You can write to the joblog using the system API &#8220;Qp0zLprintf&#8221; (documented within the Inforcenter).</p>
<p>I have a sub-procedure that I use (WrtJoblog) which encapsulates a call to this API and can be called from any ILE program.  I also have a command front end for a CL program that calls the sub-procedure so I can write messages to the job log at will.</p>
<p>If you want the source for the procedure, prototypes, commands, etc, let me know and I&#8217;ll send it off list.</p>
<p>Jonathan</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.040 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 07:33:22 -->