LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 4 Jun 2006 08:33:33 -0700
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Organization: http://groups.google.com
Subject:      Re: iterate over months and years
Comments: To: sas-l@uga.edu
In-Reply-To:  <1149432410.550244.127680@i39g2000cwa.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"

Would something like the following accomplish what you want?

data test (keep=i); format i start end date9.; start = mdy(6,1,1990); end = mdy(6,1,1995); do i=start to end; if day(i) eq 1 then output; end; run;

HTH, Art ---------- skyline wrote: > Hello, > > I just wish to clarify the statement: I wish to have from june 1990, > july 1990, ... june 1995. > > Best regards, > > > skyline wrote: > > Hello, > > > > I would like to ask how can I iterate over june of some year to june of > > another year; > > > > %do myear= 1990 %to 1995; > > %do mmonth = 6 %to 6; > > > > seems to me that they just take june of 1990-05. > > > > I appreciate your comments. > > > > Best regards,


Back to: Top of message | Previous page | Main SAS-L page