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
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
|