> I am working on a small CL program and I am wondering what the best way to
>  determine the last day of the month is. I'm not a programmer, but this is
>  just a small project I'm working on.

Well if you want to know if the day the CL program is actually running is the
last day of the month, you could RETRIEVE SYSTEM VALUES ... I not remember
exact command RTVSYSVAL perhaps ... you can WRKSYSVAL to see what ones you
want to retrieve like TODAY DATE or QMONTH & QDAY then have a little logic in
the program ... let's see the current month is 02 & according to this program
there are 28 days in that month & the current day of month 02 is 28 so that
makes it the last day of the current month unless it is a leap year & how do
I calculate that?

MacWheel99@aol.com (Alister Wm Macintyre) (Al Mac)


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.