 




<?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: RPG Program in MSGW status blocks Java Application</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-in-msgw-status-blocks-java-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-in-msgw-status-blocks-java-application/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 08:26:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-in-msgw-status-blocks-java-application/#comment-71695</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Wed, 16 Dec 2009 15:58:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-71695</guid>
		<description><![CDATA[There are several different solutions to this problem.  First, identify the problem that the RPG program is experiencing and fix it.  Second, monitor the message queue and answer the message quickly.  Third, add a reply to the system reply list in order to answer the message automatically.  Fourth, buy software like Robot to monitor the messages for you.

Hope this helps.]]></description>
		<content:encoded><![CDATA[<p>There are several different solutions to this problem.  First, identify the problem that the RPG program is experiencing and fix it.  Second, monitor the message queue and answer the message quickly.  Third, add a reply to the system reply list in order to answer the message automatically.  Fourth, buy software like Robot to monitor the messages for you.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg-program-in-msgw-status-blocks-java-application/#comment-71661</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 16 Dec 2009 02:34:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-71661</guid>
		<description><![CDATA[That&#039;s a tricky problem for a couple reasons.

First, AFAIK, RPG programs usually don&#039;t go into MSGW status. Let me explain my reasoning...

MSGW usually comes from one of three sources as far as RPG is concerned.

RPG can call the Receive Nonprogram Message (QMHRCVM) or Receive Program Message (QMHRCVPM) APIs with wait times, and those APIs can then go into a message wait state while the RPG is in a kind of wait for the API to return. Now, I&#039;m pretty sure that&#039;s not the kind of MSGW you&#039;re interested in.

Or some function such as output to a printerfile can hit some system limit such as maximum spooled records, and that function can wait on an operator response for guidance on how to proceed. (The operator might be the requester.)

Finally, an actual error in coding might trigger an exception that isn&#039;t handled by a condition handler, e.g., divide by zero. An inquiry message asking what option to take (e.g., &#039;C&#039;, &#039;R&#039; or &#039;D&#039;) can be sent to an operator.

One of those last two would be likely for you because you likely know if the RPG is trying to process a program or non-program message queue or not. That is, you should know if message queue monitoring is part of the normal program function or not. If you don&#039;t know, then it can get complicated because you have to retrieve enough job info to determine what kind of MSGW is going on.

In all three cases (AFAIK), the MSGW status is attached to the job rather than the program itself. So, you need to know first what job the RPG is running in. Then you need some secondary process (some secondary thread?) that can run while the RPG job is concurrently running. That thread can&#039;t be blocked while the RPG job is running. It would periodically retrieve the job status and make decisions when MSGW showed up.

As for what it would do when MSGW was seen...?

Am I making any sense in this?

Tom]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s a tricky problem for a couple reasons.</p>
<p>First, AFAIK, RPG programs usually don&#8217;t go into MSGW status. Let me explain my reasoning&#8230;</p>
<p>MSGW usually comes from one of three sources as far as RPG is concerned.</p>
<p>RPG can call the Receive Nonprogram Message (QMHRCVM) or Receive Program Message (QMHRCVPM) APIs with wait times, and those APIs can then go into a message wait state while the RPG is in a kind of wait for the API to return. Now, I&#8217;m pretty sure that&#8217;s not the kind of MSGW you&#8217;re interested in.</p>
<p>Or some function such as output to a printerfile can hit some system limit such as maximum spooled records, and that function can wait on an operator response for guidance on how to proceed. (The operator might be the requester.)</p>
<p>Finally, an actual error in coding might trigger an exception that isn&#8217;t handled by a condition handler, e.g., divide by zero. An inquiry message asking what option to take (e.g., &#8216;C&#8217;, &#8216;R&#8217; or &#8216;D&#8217;) can be sent to an operator.</p>
<p>One of those last two would be likely for you because you likely know if the RPG is trying to process a program or non-program message queue or not. That is, you should know if message queue monitoring is part of the normal program function or not. If you don&#8217;t know, then it can get complicated because you have to retrieve enough job info to determine what kind of MSGW is going on.</p>
<p>In all three cases (AFAIK), the MSGW status is attached to the job rather than the program itself. So, you need to know first what job the RPG is running in. Then you need some secondary process (some secondary thread?) that can run while the RPG job is concurrently running. That thread can&#8217;t be blocked while the RPG job is running. It would periodically retrieve the job status and make decisions when MSGW showed up.</p>
<p>As for what it would do when MSGW was seen&#8230;?</p>
<p>Am I making any sense in this?</p>
<p>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 6/9 queries in 0.014 seconds using memcached
Object Caching 282/285 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 09:09:07 -->