One of several approachs: this one takes
advantage of the DO loop incrementing by 1
and merely pushing the date to the end of
the month right before the DO loop increments.
format firstofmonth date9.;
do firstofmonth = '1DEC2005'd to '1FEB2007'd;
* your stuff here ;
firstofmonth = intnx('month',firstofmonth,0,'e');
Hope this is helpful.
Senior Programmer Analyst, IM&R
Russell Investment Group
Global Leaders in Multi-Manager Investing
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Tuesday, January 09, 2007 3:27 PM
Subject: Looping Over Dates
I would like to be able to loop over a series of dates, but have the
loop only look at a particular day of the month. (e.g. 1DEC2006,
Is there some relatively uncomplicated way to do this?
1601 Dry Creek Drive
Longmont, CO 80503
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify Intrado Inc. immediately at
720.494.5800 and destroy all copies of this message and any attachments.