 




<?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: Retrieving error incurred(if any) from the jobs using an independent process- AS/400</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-101816</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 18 Jan 2012 22:39:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-101816</guid>
		<description><![CDATA[&lt;i&gt;What is the meaning of engines in job processing in AS/400?&lt;/i&gt;

It&#039;s not clear how this relates to this thread. If this is an unrelated question, please open a new question so it can be given attention.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>What is the meaning of engines in job processing in AS/400?</i></p>
<p>It&#8217;s not clear how this relates to this thread. If this is an unrelated question, please open a new question so it can be given attention.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rr22</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-101794</link>
		<dc:creator>rr22</dc:creator>
		<pubDate>Wed, 18 Jan 2012 12:10:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-101794</guid>
		<description><![CDATA[What is the meaning of engines in job processing in AS/400?]]></description>
		<content:encoded><![CDATA[<p>What is the meaning of engines in job processing in AS/400?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Most-Watched IT Questions: November 16, 2010 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-83866</link>
		<dc:creator>The Most-Watched IT Questions: November 16, 2010 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 16 Nov 2010 06:24:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-83866</guid>
		<description><![CDATA[[...] 6. CharlieBrowne and TomLiotta helped out a user trying to retrieve the error incurred (if any) from AS/400 jobs using an independent process. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 6. CharlieBrowne and TomLiotta helped out a user trying to retrieve the error incurred (if any) from AS/400 jobs using an independent process. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1607</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-83353</link>
		<dc:creator>1607</dc:creator>
		<pubDate>Sat, 06 Nov 2010 03:28:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-83353</guid>
		<description><![CDATA[Hi,
Let me explain my requirement...hope u all might be able to guide me in a proper direction that i sud go...
All our jobs were scheduled thru a schedular.Some jobs run for entire day...Ideally speaking some jobs might go to some msgw status or some jobs might get dumped because of some error or some jobs might incurred some error but stil remain active .i dodn&#039;t know if i&#039;ve missed any but i&#039;ve seen all these scenarios in our system specially the  last one where i have seen that a particular job remains active and is having a joblog with a SQL0501 state..cursor problem. Now one thing is that i need to built a process to monitor the jobs which can be scheduled to run every 10-15 minutes thru out the day...
Hope i have clear my req...
Regards,]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Let me explain my requirement&#8230;hope u all might be able to guide me in a proper direction that i sud go&#8230;<br />
All our jobs were scheduled thru a schedular.Some jobs run for entire day&#8230;Ideally speaking some jobs might go to some msgw status or some jobs might get dumped because of some error or some jobs might incurred some error but stil remain active .i dodn&#8217;t know if i&#8217;ve missed any but i&#8217;ve seen all these scenarios in our system specially the  last one where i have seen that a particular job remains active and is having a joblog with a SQL0501 state..cursor problem. Now one thing is that i need to built a process to monitor the jobs which can be scheduled to run every 10-15 minutes thru out the day&#8230;<br />
Hope i have clear my req&#8230;<br />
Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-83352</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 06 Nov 2010 02:34:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-83352</guid>
		<description><![CDATA[In any case, it&#039;s almost guaranteed that there are much better ways to get your problem solved. But we don&#039;t know what your problem is yet. You asked about a complex technical issue, but the problem seems to be relatively simple.

Tom]]></description>
		<content:encoded><![CDATA[<p>In any case, it&#8217;s almost guaranteed that there are much better ways to get your problem solved. But we don&#8217;t know what your problem is yet. You asked about a complex technical issue, but the problem seems to be relatively simple.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-83351</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 06 Nov 2010 02:25:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-83351</guid>
		<description><![CDATA[&lt;i&gt;how should i know which message queue the job is referring to?&lt;/i&gt;

It is the job message. It doesn&#039;t have a name. Every job has its own job message queue. The API retrieves the messages from the job message queue of the job name that you give to the API.

It can only access the job message queue of a job that is active or on a job queue. The only message that it&#039;s likely to find for a job on a job queue is the request (*RQS) message for the job. Hmmm... I haven&#039;t tried, but it might also find messages for jobs that have their joblog in a pending state.

It doesn&#039;t matter what subsystem is involved either way, as long as you have sufficient authority.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>how should i know which message queue the job is referring to?</i></p>
<p>It is the job message. It doesn&#8217;t have a name. Every job has its own job message queue. The API retrieves the messages from the job message queue of the job name that you give to the API.</p>
<p>It can only access the job message queue of a job that is active or on a job queue. The only message that it&#8217;s likely to find for a job on a job queue is the request (*RQS) message for the job. Hmmm&#8230; I haven&#8217;t tried, but it might also find messages for jobs that have their joblog in a pending state.</p>
<p>It doesn&#8217;t matter what subsystem is involved either way, as long as you have sufficient authority.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-83174</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 02 Nov 2010 22:46:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-83174</guid>
		<description><![CDATA[&lt;i&gt;...what will be the best way to monitor the errors that got spooled in a joblog &amp; retrieve the same using an independent process ?&lt;/i&gt;

I don&#039;t think there is a best way. It shouldn&#039;t be done by an independent process.

I&#039;m only aware of one way with two alternatives. But I wouldn&#039;t call it the &quot;best way&quot;. The &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2FQMHLJOBL.htm&quot;&gt;List Job Log Messages (QMHLJOBL) API&lt;/a&gt; can list messages from a job&#039;s job message queue into a user space.

An independent process could call the API repeatedly until all messages had been returned. After each block is returned, the independent process would loop through the user space looking for messages that indicated something needed to be done. When a block was finished and more messages are available, the API would be called again to get the next block.

As an alternative, if you don&#039;t want to handle user spaces, you could call the &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QGYOLJBL.htm&quot;&gt;Open List of Job Log Messages (QGYOLJBL) API&lt;/a&gt; and handle it as an &#039;open list&#039;.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;what will be the best way to monitor the errors that got spooled in a joblog &amp; retrieve the same using an independent process ?</i></p>
<p>I don&#8217;t think there is a best way. It shouldn&#8217;t be done by an independent process.</p>
<p>I&#8217;m only aware of one way with two alternatives. But I wouldn&#8217;t call it the &#8220;best way&#8221;. The <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2FQMHLJOBL.htm">List Job Log Messages (QMHLJOBL) API</a> can list messages from a job&#8217;s job message queue into a user space.</p>
<p>An independent process could call the API repeatedly until all messages had been returned. After each block is returned, the independent process would loop through the user space looking for messages that indicated something needed to be done. When a block was finished and more messages are available, the API would be called again to get the next block.</p>
<p>As an alternative, if you don&#8217;t want to handle user spaces, you could call the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/QGYOLJBL.htm">Open List of Job Log Messages (QGYOLJBL) API</a> and handle it as an &#8216;open list&#8217;.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliebrowne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/retrieving-error-incurredif-any-from-the-jobs-using-an-independent-process-as400/#comment-83153</link>
		<dc:creator>charliebrowne</dc:creator>
		<pubDate>Tue, 02 Nov 2010 14:29:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-83153</guid>
		<description><![CDATA[It would be nice to know a little more information.
Why not monitor for the errors in the actual program and that way you can check for whatever specific contitions you desire and act according for each one.
Another idea would be so send the error messages to QSYSOPR or some other message queue and have a program monitor that queue and do whatever action you need done.
If you are just using a global MONMSG CPF0000 at the top of your program, you risk missing some critical errors. That is not usually a good programming technique to use.]]></description>
		<content:encoded><![CDATA[<p>It would be nice to know a little more information.<br />
Why not monitor for the errors in the actual program and that way you can check for whatever specific contitions you desire and act according for each one.<br />
Another idea would be so send the error messages to QSYSOPR or some other message queue and have a program monitor that queue and do whatever action you need done.<br />
If you are just using a global MONMSG CPF0000 at the top of your program, you risk missing some critical errors. That is not usually a good programming technique to use.</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.050 seconds using memcached
Object Caching 367/368 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 21:51:34 -->