<?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: Validation in as400  trigger</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 13:10:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: LakNar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114559</link>
		<dc:creator>LakNar</dc:creator>
		<pubDate>Mon, 24 Dec 2012 09:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114559</guid>
		<description><![CDATA[Thanks tom, as specified in Topic 11.3 in the given red book, i am also receiving &quot;Message CPF502B was issued&quot;&#160; message in UPDDTA command. Actually i am sending CPF9898 from QCPFMSG to QMHSNDPM API plist. Can i make this message to display in my DFU.? Or we can display only CPF502B in the DFU session ?&#160;]]></description>
		<content:encoded><![CDATA[<p>Thanks tom, as specified in Topic 11.3 in the given red book, i am also receiving &#8220;Message CPF502B was issued&#8221;&nbsp; message in UPDDTA command. Actually i am sending CPF9898 from QCPFMSG to QMHSNDPM API plist. Can i make this message to display in my DFU.? Or we can display only CPF502B in the DFU session ?&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114556</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Mon, 24 Dec 2012 07:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114556</guid>
		<description><![CDATA[&lt;EM&gt;i could not get u.. &lt;/EM&gt;
&#160;
If PGMA calls PGMB and PGMB sends an *ESCAPE message to TOPGMQ(*PRV), the message is sent to the program message queue of PGMA.
&#160;
But that&#039;s not what you are doing. PGMA isn&#039;t calling your trigger program, so your trigger program can&#039;t send a message PGMA by using TOPGMQ(*PRV). PGMA isn&#039;t the &quot;previous&quot; program.
&#160;
In your case, FILEA has your program as a trigger. PGMA attempts to update FILEA, and DB2 calls your trigger program. So, DB2 is the &quot;previous&quot; program.
&#160;
Trigger programming is a little different from usual programming. You need to learn a little more about how to send messages. You might start by reviewing the &lt;a href=&quot;http://www.redbooks.ibm.com/redbooks/SG246503/wwhelp/wwhimpl/js/html/wwhelp.htm&quot; rel=&quot;nofollow&quot;&gt;Stored Procs, Triggers, and UDFs on DB2 Redbook&lt;/A&gt;&#160;(HTML version). Look into Chapter 11, topic 11.3 Trigger feedback to application programs, for some explanation.
&#160;
It should help you understand what is happening. After that, it might be easier to figure out how you want to handle it.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>i could not get u.. </em><br />
&nbsp;<br />
If PGMA calls PGMB and PGMB sends an *ESCAPE message to TOPGMQ(*PRV), the message is sent to the program message queue of PGMA.<br />
&nbsp;<br />
But that&#8217;s not what you are doing. PGMA isn&#8217;t calling your trigger program, so your trigger program can&#8217;t send a message PGMA by using TOPGMQ(*PRV). PGMA isn&#8217;t the &#8220;previous&#8221; program.<br />
&nbsp;<br />
In your case, FILEA has your program as a trigger. PGMA attempts to update FILEA, and DB2 calls your trigger program. So, DB2 is the &#8220;previous&#8221; program.<br />
&nbsp;<br />
Trigger programming is a little different from usual programming. You need to learn a little more about how to send messages. You might start by reviewing the <a href="http://www.redbooks.ibm.com/redbooks/SG246503/wwhelp/wwhimpl/js/html/wwhelp.htm" rel="nofollow">Stored Procs, Triggers, and UDFs on DB2 Redbook</a>&nbsp;(HTML version). Look into Chapter 11, topic 11.3 Trigger feedback to application programs, for some explanation.<br />
&nbsp;<br />
It should help you understand what is happening. After that, it might be easier to figure out how you want to handle it.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LakNar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114555</link>
		<dc:creator>LakNar</dc:creator>
		<pubDate>Mon, 24 Dec 2012 05:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114555</guid>
		<description><![CDATA[Tom, i could not get u.. I have to use my DB2 name(Eg: TRGPF) in TOPGMQ parameter ?]]></description>
		<content:encoded><![CDATA[<p>Tom, i could not get u.. I have to use my DB2 name(Eg: TRGPF) in TOPGMQ parameter ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114499</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Fri, 21 Dec 2012 12:40:03 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/validation-in-as400-trigger/#comment-114499</guid>
		<description><![CDATA[If you send an *ESCAPE message to TOPGMQ(*PRV) from a trigger program, you&#039;re telling DB2 that the trigger program has failed somehow. The previous program (i.e., *PRV) for a trigger program is always DB2 since DB2 is always what calls trigger programs. -- Tom]]></description>
		<content:encoded><![CDATA[<p>If you send an *ESCAPE message to TOPGMQ(*PRV) from a trigger program, you&#8217;re telling DB2 that the trigger program has failed somehow. The previous program (i.e., *PRV) for a trigger program is always DB2 since DB2 is always what calls trigger programs. &#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 6/8 queries in 0.013 seconds using memcached
Object Caching 311/312 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 14:39:18 -->