Yeah, I shouldn't have been so flippant. It happened at another company I
worked at, too. My boss there, who has a Master's in Math, was aghast.
Murphy's Law.
Jerry C. Adams
IBM i Programmer/Analyst
It doesn't matter what he does, he will never amount to anything. - Albert
Einstein's teacher to little Albert's father
--
A&K Wholesale
Murfreesboro, TN
615-867-5070
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of John Yeung
Sent: Thursday, July 07, 2011 10:20 AM
To: RPG programming on the IBM i / System i
Subject: Re: SETLL Not Pointing to Correct Record (V5R1)
On Thu, Jul 7, 2011 at 10:10 AM, Jerry C. Adams <midrange@xxxxxxxx> wrote:
Plus the mathematical odds of the same customer getting
assigned the same order number years later seem kinda
long.
The chance is small, yes; but it has happened to us at my workplace.
In cases where this can be prevented cheaply (one more line of code,
no measurable loss of performance), I take the opportunity to do so.
Granted, it's not always so cheap (such as when the files are poorly
designed and don't even have dates to check!).
John