|
Okay, so where can we get this RTVHOLIDAY program? Dave > ---------- > From: Al Barsa, Jr.[SMTP:barsa2@ibm.net] > Reply To: MIDRANGE-L@midrange.com > Sent: Thursday, May 20, 1999 9:30 AM > To: MIDRANGE-L@midrange.com > Subject: Re: Date Validation File > > At 11:14 AM 5/20/99 +0100, you wrote: > > > > > >"Al Barsa, Jr." <barsa2@ibm.net> wrote: > > > >>With all due respect, I think that software to validate a date would > >>certainly be more efficient that a file. (The file would use MUCH > more > >>disk space, the routine would use more CPU.) Possibly a hybrid > solution > >>would be the best: Whenever a date is validated, it is put into a > file. > > > >A couple of observations. Firstly Chris' file could be useful in > queries > >although I don't know whether this is his intention or just a handy > by-product. > > Agreed. For whatever reason, my assumption was that this was to be > used in > an RPG CHAIN environment. > > >Secondly I don't think it's realistic to calculate public holidays on > the > fly; > >these will have to be stored in a database file. > > National holidays are specified by legislation. I published a routine > (several years ago) called RTVHOLIDAY that calculates the date and day > of > the week for every national holiday, from the years 1600-9999. The > holidays included: > > New Years Day > Martin Luther King Day > President's Day > Memorial Day > Flag Day > The Fourth of July > Labor Day > Columbus Day > Election Day > Thanksgiving Day > The Day After Thanksgiving > Christmas Eve > Christmas > > This was all done by an RPG routine which was about 100 lines with > comments. There was a trivial CL to up front it. > > There is also a TAA TOOL called RTVHOLIDAY. It uses a table, and goes > from > 1940 to 2039. The holidays include: > > Ash Wednesday > Martin Luther King Day > President's Day > Good Friday > Easter > Passover > Mothers Day > Memorial Day > Fathers Day > Labor Day > Columbus Day > Rosh Hashanah > Thanksgiving Day > Hanukkah > > This is about 900 lines, and is all done in CL. > > > > > +--------------------------------------------------+ > | Please do not send private mail to this address. | > | Private mail should go to barsa@ibm.net. | > +--------------------------------------------------+ > > Al Barsa, Jr. - Account for Midrange-L > Barsa Consulting, LLC. > 400 > 390 > > Phone: 914-251-1234 > Fax: 914-251-9406 > http://www.barsaconsulting.com > http://www.taatool.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 > +--- > +--- | 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.