|
why not convert to ILE and let the system handle it? Windowing support for 6 digit dates and the short julian is from 1940-2028, 7 digit dates window from 1900-2899, and does not window 8 digit dates (*ISO, *USA and *LONGJUL) (from 0001-9999) ----- Original Message ----- From: <KeatonDana@aol.com> To: <MIDRANGE-L@midrange.com> Sent: Friday, March 26, 1999 10:42 AM Subject: Determining Age I wrote a routine that i call and pass 8 digit dates to, this calculates the age of an individual. I take the passed date and convert it to julian and take todays date and also convert this to julian. I then calculate the age by substringing out the first 2 digits and subtracting them. I then use the day portion of the julian date and calculate days so that i can modify the age in necessary. My question is that IBM only supports 4 digit dates upto and including 8/4/1928. But most of the patients DOB are prior to this and I don't want to write a second routine. I've been converting the DOB and all dates to the mmddyyyy format but have run into this problem. I'm on R3M2 and wonder if other dates are supported if I move to a new release? Or hey if anyone can come up with a better idea I'm open to any input. Thanks in advance.. Dana Keaton +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
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.