 




<?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 to differentiate between newly added records  and previously added records in Physical file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 13:24:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: rajgoaj</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66316</link>
		<dc:creator>rajgoaj</dc:creator>
		<pubDate>Fri, 31 Jul 2009 11:53:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-66316</guid>
		<description><![CDATA[Every EOD the latest RRN number could be stored in a data area, the next day you will find the new records with RRN number greater than the one stored in that data area previous day.]]></description>
		<content:encoded><![CDATA[<p>Every EOD the latest RRN number could be stored in a data area, the next day you will find the new records with RRN number greater than the one stored in that data area previous day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wilsonalano</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66213</link>
		<dc:creator>wilsonalano</dc:creator>
		<pubDate>Wed, 29 Jul 2009 15:31:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-66213</guid>
		<description><![CDATA[I had the same thoughts about writing directly to the final destination but I assumed (!) that it wasn&#039;t possible for some reason (EOD process needs, remote location of final destination or something like that).]]></description>
		<content:encoded><![CDATA[<p>I had the same thoughts about writing directly to the final destination but I assumed (!) that it wasn&#8217;t possible for some reason (EOD process needs, remote location of final destination or something like that).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kapiltiwari</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66178</link>
		<dc:creator>kapiltiwari</dc:creator>
		<pubDate>Wed, 29 Jul 2009 06:09:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-66178</guid>
		<description><![CDATA[Thanks Mr  Wilson.


I m trying to write records to its final destination  as  Mr  Teandy  is  saying.]]></description>
		<content:encoded><![CDATA[<p>Thanks Mr  Wilson.</p>
<p>I m trying to write records to its final destination  as  Mr  Teandy  is  saying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teandy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66163</link>
		<dc:creator>teandy</dc:creator>
		<pubDate>Tue, 28 Jul 2009 21:06:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-66163</guid>
		<description><![CDATA[I&#039;m curious as to why you would bother with a temporary file.  Why not write the record to its final destination and be done with it?]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m curious as to why you would bother with a temporary file.  Why not write the record to its final destination and be done with it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wilsonalano</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66139</link>
		<dc:creator>wilsonalano</dc:creator>
		<pubDate>Tue, 28 Jul 2009 15:43:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-66139</guid>
		<description><![CDATA[Hi Kapil,

What I was suggesting was a RPGILE trigger for &quot;after insert&quot;. You can do that in CL but it&#039;s not easy (CL do not have &quot;native&quot; write to files).

If you don&#039;t know how to make a trigger program you can take a look at this link

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/dbp/rbaforzahftrb.htm

The idea is, for each record inserted in the original file, trigger a program that take the record image and write it in a temporary file. You must have a end-of-day process to copy this temp file to its final destination and clear the temp file for next day.

Regards,
Wilson]]></description>
		<content:encoded><![CDATA[<p>Hi Kapil,</p>
<p>What I was suggesting was a RPGILE trigger for &#8220;after insert&#8221;. You can do that in CL but it&#8217;s not easy (CL do not have &#8220;native&#8221; write to files).</p>
<p>If you don&#8217;t know how to make a trigger program you can take a look at this link</p>
<p><a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/dbp/rbaforzahftrb.htm" rel="nofollow">http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/dbp/rbaforzahftrb.htm</a></p>
<p>The idea is, for each record inserted in the original file, trigger a program that take the record image and write it in a temporary file. You must have a end-of-day process to copy this temp file to its final destination and clear the temp file for next day.</p>
<p>Regards,<br />
Wilson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kapiltiwari</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66116</link>
		<dc:creator>kapiltiwari</dc:creator>
		<pubDate>Tue, 28 Jul 2009 07:05:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-66116</guid>
		<description><![CDATA[Hearty thanks to all of you. I have solved .

I wanna know more explanation from Mr.  Wilson Alano Junior  about how to copy only new records  of  Physical file  by CL program called on insert after trigger. 
Please explain this in detail.


Thanks]]></description>
		<content:encoded><![CDATA[<p>Hearty thanks to all of you. I have solved .</p>
<p>I wanna know more explanation from Mr.  Wilson Alano Junior  about how to copy only new records  of  Physical file  by CL program called on insert after trigger.<br />
Please explain this in detail.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wilsonalano</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66097</link>
		<dc:creator>wilsonalano</dc:creator>
		<pubDate>Mon, 27 Jul 2009 19:12:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-66097</guid>
		<description><![CDATA[Hi,

I suggest a trigger over the original file to add a record to a temp file that you just copy at end of the day and clear it for the next day process.

Regards,
Wilson]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I suggest a trigger over the original file to add a record to a temp file that you just copy at end of the day and clear it for the next day process.</p>
<p>Regards,<br />
Wilson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yorkshireman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66085</link>
		<dc:creator>yorkshireman</dc:creator>
		<pubDate>Mon, 27 Jul 2009 16:14:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-66085</guid>
		<description><![CDATA[To ensure that you collect *ALL records, provide a file containing the keys of the records in the Physical file.
When you copy a record, place its key in the new file. 
Tomorrow, and every day therafter, check the new file to see if the record has been copied, and if it has not, copy it, and place its key in the new file. 

This will work through every disaster, barring a powerdown in mid updtae, in which case you may lose a record - provide a timestamp on your new file. 


I recommend www.IBM.com   for DB2 manuals on how all of this works - journalling - running the above with SQL.....]]></description>
		<content:encoded><![CDATA[<p>To ensure that you collect *ALL records, provide a file containing the keys of the records in the Physical file.<br />
When you copy a record, place its key in the new file.<br />
Tomorrow, and every day therafter, check the new file to see if the record has been copied, and if it has not, copy it, and place its key in the new file. </p>
<p>This will work through every disaster, barring a powerdown in mid updtae, in which case you may lose a record &#8211; provide a timestamp on your new file. </p>
<p>I recommend <a href="http://www.IBM.com" rel="nofollow">http://www.IBM.com</a>   for DB2 manuals on how all of this works &#8211; journalling &#8211; running the above with SQL&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satsho</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66083</link>
		<dc:creator>satsho</dc:creator>
		<pubDate>Mon, 27 Jul 2009 15:57:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-66083</guid>
		<description><![CDATA[Step 1 - Create  a Journal receiver - CRTJRNRCV

Step 2 - Create a Journal

Step 3 - Add the file to the Journal  - STRJRNPF - in your case, it would be with *AFTER image

Ensure you start and end commitment control in your CL programs or COMMIT in RPG.]]></description>
		<content:encoded><![CDATA[<p>Step 1 &#8211; Create  a Journal receiver &#8211; CRTJRNRCV</p>
<p>Step 2 &#8211; Create a Journal</p>
<p>Step 3 &#8211; Add the file to the Journal  &#8211; STRJRNPF &#8211; in your case, it would be with *AFTER image</p>
<p>Ensure you start and end commitment control in your CL programs or COMMIT in RPG.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kapiltiwari</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-differentiate-between-newly-added-records-and-previously-added-records-in-physical-file/#comment-66077</link>
		<dc:creator>kapiltiwari</dc:creator>
		<pubDate>Mon, 27 Jul 2009 13:52:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-66077</guid>
		<description><![CDATA[How to journal  that file  on daily basis to copy only newly added records from it.


Please tell me all the steps :]]></description>
		<content:encoded><![CDATA[<p>How to journal  that file  on daily basis to copy only newly added records from it.</p>
<p>Please tell me all the steps :</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.039 seconds using memcached
Object Caching 393/399 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 14:12:23 -->