Can you have any confidence that the youngest dob might be a few years ago? After age 100, the numbers drop off very fast, so if you can narrow your range from 8 to 108, you can use 1998 as the top year in your window. I have to believe that not many people will be over 108 years old.



Karen L Hodge/MIS/Genesys wrote:
I would only perform this code if the value of 'YY' is greater than the
current year.
that would narrow down my odds,
1)  no one can have a DOB before the current date.
2)  there should not be that may people that are over 100 years old.

Karen



rpg400-l-request@ midrange.com Sent by: To rpg400-l-bounces@ rpg400-l@xxxxxxxxxxxx midrange.com cc Subject 02/16/2006 04:14 RPG400-L Digest, Vol 5, Issue 220 PM Please respond to rpg400-l@midrange .com




------------------------------

message: 11
date: Thu, 16 Feb 2006 16:14:33 -0500
from: "Walden H. Leverich" <WaldenL@xxxxxxxxxxxxxxx>
subject: RE: Base year

That's true, but if you do that, it'll ALWAYS be 19xx.  You'll never
get 20xx.

True. I'm making an assumption (I know...) that she knows her dataset
and understands the implications of forcing the 19xx into the date. One
time conversion maybe?

-Walden

------------
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx
http://www.TechSoftInc.com

Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)



------------------------------

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) digest list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



End of RPG400-L Digest, Vol 5, Issue 220
****************************************




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.