• Subject: Last Day of Last Month
  • From: Brad McDaniel <BMCDANIEL@xxxxxxxxx>
  • Date: Wed, 13 Oct 1999 08:31:02 -0500

Title: Last Day of Last Month

I am writing some CL's to automate some monthly jobs that are usually submitted through user menus.  This particular CL submits a job with the prior month and year as the parms (let's say &YEAR (4) and &MONTH (2)).  Then, the CL does a STRQMQRY with the year, month, and day of the last day of that month.  Does anyone have a sample of the easiest way to figure out the last day of a particular month (i.e.  if run today, the year and month would be 1999 09, and the CL would need to pass 19990930 to the query.)?

I know the method for passing parms with STRQMQRY, I am just wondering if anyone has some code laying around that gives you the last day of the month (accounting for leap years also).

Thanks  

Brad McDaniel
Information Services
Annuity Board, SBC
http://www.absbc.org
214-720-6546


This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2019 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 here. If you have questions about this, please contact [javascript protected email address].