> 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.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.