 




<?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: RPGLE SETLL / READE for update getting record lock on different key</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 18:21:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116849</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Fri, 01 Mar 2013 02:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116849</guid>
		<description><![CDATA[The problem doesn&#039;t seem related to physical sequence. The code indicates (partial) key, so access is for indexed sequence. It does seem odd, though. Why does RPG need a &#039;record&#039; when it has access to the &#039;index&#039;? The index entry should be enough for RPG (via DB2) to know that it shouldn&#039;t even try to read the non-matching record. Too bad we don&#039;t have a DB2 internal developer here. Is this an index on the physical file or from a logical file? -- Tom]]></description>
		<content:encoded><![CDATA[<p>The problem doesn&#8217;t seem related to physical sequence. The code indicates (partial) key, so access is for indexed sequence. It does seem odd, though. Why does RPG need a &#8216;record&#8217; when it has access to the &#8216;index&#8217;? The index entry should be enough for RPG (via DB2) to know that it shouldn&#8217;t even try to read the non-matching record. Too bad we don&#8217;t have a DB2 internal developer here. Is this an index on the physical file or from a logical file? &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aceofdelts</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116845</link>
		<dc:creator>aceofdelts</dc:creator>
		<pubDate>Thu, 28 Feb 2013 17:45:24 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116845</guid>
		<description><![CDATA[I think you could lessen the problem if you could resequence your data (I&#039;m not trying it now, but I believe RGZPFM will physically resequence). So doesn&#039;t fix anything but might give you fewer of the errant locks.]]></description>
		<content:encoded><![CDATA[<p>I think you could lessen the problem if you could resequence your data (I&#8217;m not trying it now, but I believe RGZPFM will physically resequence). So doesn&#8217;t fix anything but might give you fewer of the errant locks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116701</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Mon, 25 Feb 2013 14:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116701</guid>
		<description><![CDATA[From the various things we&#039;ve gathered, I would be looking for a lock on the very first record of the next key.&#160; But I would thnk that you would have already discovered that .. if that&#039;s what is happening.]]></description>
		<content:encoded><![CDATA[<p>From the various things we&#8217;ve gathered, I would be looking for a lock on the very first record of the next key.&nbsp; But I would thnk that you would have already discovered that .. if that&#8217;s what is happening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SemiTechieGeo</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116696</link>
		<dc:creator>SemiTechieGeo</dc:creator>
		<pubDate>Mon, 25 Feb 2013 13:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116696</guid>
		<description><![CDATA[&lt;pre&gt;Thanks again.  

What we are seeing appears to be a fact-of-life for RPG programming as described in the manual.

We wish we better understood what causes those -occasional- occurrences.   We will try to learn what we can from IBM.

At this point, we plan to revise programs as they appear in the logs. &lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<pre>Thanks again.  

What we are seeing appears to be a fact-of-life for RPG programming as described in the manual.

We wish we better understood what causes those -occasional- occurrences.   We will try to learn what we can from IBM.

At this point, we plan to revise programs as they appear in the logs. </pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116670</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Sat, 23 Feb 2013 22:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116670</guid>
		<description><![CDATA[&lt;EM&gt;Looking at the specific RRN, the record is a Florida account with completely different key values.&lt;/EM&gt;
&#160;
Can you describe the specific steps involved in going through that process? Include steps that can and cannot be automated. There might be a way to handle the non-automated steps that could be acceptable to users with condition handlers. A little creative designing might allow insertion into job streams with limited code changes.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>Looking at the specific RRN, the record is a Florida account with completely different key values.</em><br />
&nbsp;<br />
Can you describe the specific steps involved in going through that process? Include steps that can and cannot be automated. There might be a way to handle the non-automated steps that could be acceptable to users with condition handlers. A little creative designing might allow insertion into job streams with limited code changes.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116661</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 23 Feb 2013 16:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116661</guid>
		<description><![CDATA[Change the names of the physical filesCreate logical files with the original name of each&#160;physical file&#160;in each office library and a select to just that offices data.&#160; Logicals must have same format as physical.Programs won&#039;t need to be changed at all, no overrides will be necessary.]]></description>
		<content:encoded><![CDATA[<p>Change the names of the physical filesCreate logical files with the original name of each&nbsp;physical file&nbsp;in each office library and a select to just that offices data.&nbsp; Logicals must have same format as physical.Programs won&#8217;t need to be changed at all, no overrides will be necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116660</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 23 Feb 2013 16:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116660</guid>
		<description><![CDATA[Or the logicals could be in different libraries for each office and the user library list determines what rows they see.]]></description>
		<content:encoded><![CDATA[<p>Or the logicals could be in different libraries for each office and the user library list determines what rows they see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116659</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 23 Feb 2013 16:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116659</guid>
		<description><![CDATA[That&#039;s consistant with the manual .. it reads the last record of the set, processes that record and then attempts to read the next record in the file which it will then discard as the wrong key.One answer (also lousy maybe worse)&#160;.. logical files - one for each office .. and override to the logical.&#160; Since the logical selects only for the records of that office it reaches EOF, instead of trying to get the record from a different office.]]></description>
		<content:encoded><![CDATA[<p>That&#8217;s consistant with the manual .. it reads the last record of the set, processes that record and then attempts to read the next record in the file which it will then discard as the wrong key.One answer (also lousy maybe worse)&nbsp;.. logical files &#8211; one for each office .. and override to the logical.&nbsp; Since the logical selects only for the records of that office it reaches EOF, instead of trying to get the record from a different office.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SemiTechieGeo</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116657</link>
		<dc:creator>SemiTechieGeo</dc:creator>
		<pubDate>Sat, 23 Feb 2013 16:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116657</guid>
		<description><![CDATA[Thanks for your help.&#160; We&#039;ll follow-up with IBM as suggested. To answer a couple of questions...The first code sample is typical of what encounters a lock.&#160; The joblog identifies the locked RRN.&#160; The record turns out to have a non-matching key.&#160; Logging shows that the second code sample resolves the problem.&#160; (We see no new unexpected log entries for a given program after it is revised.)&#160; It is consistent with the manual, but the idea of fixing 20+ years of programs is daunting.&#160; Maybe we&#039;ve just been coding wrong for our entire careers and didn&#039;t realize it.&#160; Maybe that is the question I&#039;m really asking.It has become an issue because we have branch offices in several states.&#160; Many of our programs monitor for locks and display a message when one occurs, giving the user the opportunity to retry. Legitimate locks typically happen within a single branch and users can sort them out without calling the help-desk. A problem scenario goes like this:&#160; Ohio calls to report that Florida has an Ohio account locked.&#160; Ohio wants to know what Florida is up to.&#160; Looking at the specific RRN, the record is a Florida account with completely different key values.&#160; Using a service job to debug the Ohio program, we see nothing odd -- the READE key values match the Ohio account.&#160; We can&#039;t understand why it wants the Florida record. Florida releases the lock, Ohio retries, the READE completes, and EOF is on.&#160; (Again, consistent with what the manual says can happen occasionally, but something we don&#039;t recall having issues with.)Maybe it has to do with sheer volume.&#160; Our main order-entry driver is called about 10,000 time per day on average.&#160; Unexpected locks within that system occur between 1 and 10 times a day.&#160; Even at once per day, it&#039;s not fun trying to reassure Ohio that Florida is innocent.]]></description>
		<content:encoded><![CDATA[<p>Thanks for your help.&nbsp; We&#8217;ll follow-up with IBM as suggested. To answer a couple of questions&#8230;The first code sample is typical of what encounters a lock.&nbsp; The joblog identifies the locked RRN.&nbsp; The record turns out to have a non-matching key.&nbsp; Logging shows that the second code sample resolves the problem.&nbsp; (We see no new unexpected log entries for a given program after it is revised.)&nbsp; It is consistent with the manual, but the idea of fixing 20+ years of programs is daunting.&nbsp; Maybe we&#8217;ve just been coding wrong for our entire careers and didn&#8217;t realize it.&nbsp; Maybe that is the question I&#8217;m really asking.It has become an issue because we have branch offices in several states.&nbsp; Many of our programs monitor for locks and display a message when one occurs, giving the user the opportunity to retry. Legitimate locks typically happen within a single branch and users can sort them out without calling the help-desk. A problem scenario goes like this:&nbsp; Ohio calls to report that Florida has an Ohio account locked.&nbsp; Ohio wants to know what Florida is up to.&nbsp; Looking at the specific RRN, the record is a Florida account with completely different key values.&nbsp; Using a service job to debug the Ohio program, we see nothing odd &#8212; the READE key values match the Ohio account.&nbsp; We can&#8217;t understand why it wants the Florida record. Florida releases the lock, Ohio retries, the READE completes, and EOF is on.&nbsp; (Again, consistent with what the manual says can happen occasionally, but something we don&#8217;t recall having issues with.)Maybe it has to do with sheer volume.&nbsp; Our main order-entry driver is called about 10,000 time per day on average.&nbsp; Unexpected locks within that system occur between 1 and 10 times a day.&nbsp; Even at once per day, it&#8217;s not fun trying to reassure Ohio that Florida is innocent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116654</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 23 Feb 2013 13:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/rpgle-setll-reade-for-update-getting-record-lock-on-different-keying/#comment-116654</guid>
		<description><![CDATA[oddly enough I ran into problems a few versions ago with READ(N) where it appeared that the process was actually a read with lock followed by an unlock.&#160; At that time READ(N)&#160;would&#160;get&#160;record locks.&#160; Obviously, IBM doesn&#039;t think that&#039;s the case, since they recommend a READE(N) in the solution to the locked record case.]]></description>
		<content:encoded><![CDATA[<p>oddly enough I ran into problems a few versions ago with READ(N) where it appeared that the process was actually a read with lock followed by an unlock.&nbsp; At that time READ(N)&nbsp;would&nbsp;get&nbsp;record locks.&nbsp; Obviously, IBM doesn&#8217;t think that&#8217;s the case, since they recommend a READE(N) in the solution to the locked record case.</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-20 18:53:07 -->