 




<?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: Update duplicate record in rpgle</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 00:24:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: nasrunisar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109601</link>
		<dc:creator>nasrunisar</dc:creator>
		<pubDate>Fri, 27 Jul 2012 12:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109601</guid>
		<description><![CDATA[Thank you very much Tom, Got DB Rrn during each read operation thru INFDS and written into subfile &#039;H&#039;idden field (HRRN) and for update,&#160;used Chain with HRRN and update working fine. And for delete, pointer at *start setll and the file processed within Dow Not %EOF and compared delete screen fields with file fields, and the matching record deleted.&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Everything works fine till now as far as write, update and delete is concern. Now got some validations to perform. Once again I thank you vey much for your quick response.]]></description>
		<content:encoded><![CDATA[<p>Thank you very much Tom, Got DB Rrn during each read operation thru INFDS and written into subfile &#8216;H&#8217;idden field (HRRN) and for update,&nbsp;used Chain with HRRN and update working fine. And for delete, pointer at *start setll and the file processed within Dow Not %EOF and compared delete screen fields with file fields, and the matching record deleted.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Everything works fine till now as far as write, update and delete is concern. Now got some validations to perform. Once again I thank you vey much for your quick response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109576</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 26 Jul 2012 21:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109576</guid>
		<description><![CDATA[Subfile Rrn and PF Rrn is not matching...
&#160;
The subfile RRN is not the same as the PF RRN unless your program logic makes them the same.
&#160;
You must retrieve the PF RRN (DB_RRN)&#160;from the &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/rzasd/sc092508160.htm&quot; rel=&quot;nofollow&quot;&gt;device-specific-feedback area&lt;/A&gt; at the time the PF record is retrieved. You would store each DB_RRN in a &#039;H&#039;idden subfile field so your program knows which PF record to access later.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>Subfile Rrn and PF Rrn is not matching&#8230;<br />
&nbsp;<br />
The subfile RRN is not the same as the PF RRN unless your program logic makes them the same.<br />
&nbsp;<br />
You must retrieve the PF RRN (DB_RRN)&nbsp;from the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v6r1m0/index.jsp?topic=/rzasd/sc092508160.htm" rel="nofollow">device-specific-feedback area</a> at the time the PF record is retrieved. You would store each DB_RRN in a &#8216;H&#8217;idden subfile field so your program knows which PF record to access later.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nasrunisar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109559</link>
		<dc:creator>nasrunisar</dc:creator>
		<pubDate>Thu, 26 Jul 2012 13:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109559</guid>
		<description><![CDATA[Subfile Rrn and PF Rrn is not matching&#160;while comparing after deleting any record, therefore giving errror update without prior input operation. Could any one suggest how to solve this issue.?
&#160;]]></description>
		<content:encoded><![CDATA[<p>Subfile Rrn and PF Rrn is not matching&nbsp;while comparing after deleting any record, therefore giving errror update without prior input operation. Could any one suggest how to solve this issue.?<br />
&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109512</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 25 Jul 2012 03:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109512</guid>
		<description><![CDATA[And that means putting the original field value into a hidden field or the relative record # into a hidden field.
Also you can change the Chain to a SETLL and read until all fields match the original values... then you have the record you want to update...unless someone else updates it before you get to it.
&#160;]]></description>
		<content:encoded><![CDATA[<p>And that means putting the original field value into a hidden field or the relative record # into a hidden field.<br />
Also you can change the Chain to a SETLL and read until all fields match the original values&#8230; then you have the record you want to update&#8230;unless someone else updates it before you get to it.<br />
&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graybeard52</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109510</link>
		<dc:creator>graybeard52</dc:creator>
		<pubDate>Wed, 25 Jul 2012 00:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109510</guid>
		<description><![CDATA[Another option is to use SQL to update the record using criteria that makes it unique.]]></description>
		<content:encoded><![CDATA[<p>Another option is to use SQL to update the record using criteria that makes it unique.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nasrunisar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109482</link>
		<dc:creator>nasrunisar</dc:creator>
		<pubDate>Tue, 24 Jul 2012 04:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109482</guid>
		<description><![CDATA[Thank you Tom and all, its updating correctly thru RRN.]]></description>
		<content:encoded><![CDATA[<p>Thank you Tom and all, its updating correctly thru RRN.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109471</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Mon, 23 Jul 2012 21:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109471</guid>
		<description><![CDATA[Since there are no unique fields between the 3rd and 4th records except for F6, you would need all six fields as your key for any LF that you create. A possible better choice would be to grab the RRN of each row and store it as a &#039;H&#039;idden field in the subfile. When you are ready to update, use the RRN to CHAIN to the PF record, and update that record. Tom]]></description>
		<content:encoded><![CDATA[<p>Since there are no unique fields between the 3rd and 4th records except for F6, you would need all six fields as your key for any LF that you create. A possible better choice would be to grab the RRN of each row and store it as a &#8216;H&#8217;idden field in the subfile. When you are ready to update, use the RRN to CHAIN to the PF record, and update that record. Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109464</link>
		<dc:creator>Splat</dc:creator>
		<pubDate>Mon, 23 Jul 2012 14:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109464</guid>
		<description><![CDATA[This is why I use logical views for display sequencing and physical RRN for updating.]]></description>
		<content:encoded><![CDATA[<p>This is why I use logical views for display sequencing and physical RRN for updating.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nasrunisar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109462</link>
		<dc:creator>nasrunisar</dc:creator>
		<pubDate>Mon, 23 Jul 2012 13:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/update-duplicate-record-in-rpgle/#comment-109462</guid>
		<description><![CDATA[Thank you Charlie,
1. &lt;EM&gt;Create a new LF where the key would be unique. = &lt;/EM&gt;In this option what would be my key fields. Are the same field1, 2 and 3 will be the key fields?
2. In the&#160;hidden fields only the record will be available right? Could you please send me some sample code?
&#160;]]></description>
		<content:encoded><![CDATA[<p>Thank you Charlie,<br />
1. <em>Create a new LF where the key would be unique. = </em>In this option what would be my key fields. Are the same field1, 2 and 3 will be the key fields?<br />
2. In the&nbsp;hidden fields only the record will be available right? Could you please send me some sample code?<br />
&nbsp;</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.042 seconds using memcached
Object Caching 379/385 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 02:58:43 -->