Date: Fri, 27 Jun 2008 11:39:03 -0700
Reply-To: Don <dmorgan@ROCKETMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Don <dmorgan@ROCKETMAIL.COM>
Organization: http://groups.google.com
Subject: Re: how to generate a dataset contains all week day for year 2007?
Content-Type: text/plain; charset=ISO-8859-1
data t ;
do i=17167 to 17531 ;
if weekday(i) >1 and weekday(i) <7 then output ;
end ;
format i mmddyy10. ;
Don - AB3BO
Yah know its Friday when I had to remove the semicolon from my Sig
before clicking Send!
On Jun 27, 1:49 pm, zhuj...@GMAIL.COM (Jeff) wrote:
> how to generate a dataset contains all week day for year 2007?
> the dataset should like
> date
> 1/1/2007
> 1/2/2007
> 1/3/2007
> 1/4/2007
> 1/5/2007
> 1/8/2007
> ......
> Thanks
>
> Jeff
|