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 (February 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 18 Feb 2008 10:03:05 -0500
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:      Re: working with weekdays
Comments: To: Marcel Lamack <mar.lamack@HOTMAIL.COM>
Content-Type: text/plain; charset=ISO-8859-1

JL,

I like Jiang's solution, but Gerhard's choice of numbers (i.e., weekday = 2 or 5).

I'd use:

data week; format i yymmdd10.; do i='1jan2008'd to '31dec2008'd; if weekday(i) in (2,5) then output; end; run;

HTH, Art ----------- On Mon, 18 Feb 2008 13:05:18 +0000, Marcelo Lamack <mar.lamack@HOTMAIL.COM> wrote:

>Dear all, is it possible create, automatically, a variable with all the >Monday and Thursday, like this: > >18/02/2008 >21/02/2008 >25/02/2008 >28/02/2008 >03/03/2008 >. >. >for all months > >Best regards > >JL >_________________________________________________________________ >Receba GR?IS as mensagens do Messenger no seu celular quando você ¥stiver offline. Conheç¡ o MSN Mobile! >http://mobile.live.com/signup/signup2.aspx?lc=pt-br


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