| Date: | Wed, 21 Mar 2007 19:06:05 +0000 |
| Reply-To: | toby dunn <tobydunn@HOTMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | toby dunn <tobydunn@HOTMAIL.COM> |
| Subject: | Re: SAS date |
|
| In-Reply-To: | <729552.50871.qm@web30913.mail.mud.yahoo.com> |
| Content-Type: | text/plain; format=flowed |
|---|
Data _Null_ ;
Year = 1965 ;
Month = 5 ;
Day = 3 ;
FirstDay = IntnX( 'Month' , MDY( Month , Day , Year ) , 0 , 'B' ) ;
Put FirstDay DowName. ;
Run ;
If Your nnot stuck to a Data Set but are using User defined macro variables
the whole thing can be done in the Macro Facility:
Toby Dunn
To sensible men, every day is a day of reckoning. ~John W. Gardner
The important thing is this: To be able at any moment to sacrifice that
which we are for what we could become. ~Charles DuBois
Don't get your knickers in a knot. Nothing is solved and it just makes you
walk funny. ~Kathryn Carpenter
From: Westcotter <westcotter@YAHOO.COM>
Reply-To: Westcotter <westcotter@YAHOO.COM>
To: SAS-L@LISTSERV.UGA.EDU
Subject: SAS date
Date: Wed, 21 Mar 2007 11:45:23 -0700
Dear all,
Here is a question I would like to ask for your help.
One observation includes year (1965), month (5), and week of the month
(which could be only 1, 2,
3, or 4).
I would like to know exact date inluding year, month, and the day (the first
day of the week, such
as Sunday, will be fine).
How can I do this?
Thanks so much.
Kangsheng
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
_________________________________________________________________
Exercise your brain! Try Flexicon.
http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglinemarch07
|