Date: Mon, 23 Jan 2006 07:54:28 -0500
Reply-To: "Tonkovich, Mike" <Mike.Tonkovich@DNR.STATE.OH.US>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Tonkovich, Mike" <Mike.Tonkovich@DNR.STATE.OH.US>
Subject: Re: 3 variables to one SAS date value
Content-Type: text/plain; charset="us-ascii"
Nat - That works perfectly, even in EG!
Thank you
Michael J. Tonkovich, Ph.D.
Wildlife Research Biologist
ODNR, Division of Wildlife
360 E. State St.
Athens, OH 45701
v(740)589.9920 f(740)589.9925
mike.tonkovich@dnr.state.oh.us
-----Original Message-----
From: Nathaniel_Wooding@Dom.com [mailto:Nathaniel_Wooding@Dom.com]
Sent: Monday, January 23, 2006 7:43 AM
To: Tonkovich, Mike
Cc: SAS-L@LISTSERV.UGA.EDU
Subject: Re: 3 variables to one SAS date value
Mike
I don't use EG so I can't help you there but the classic solution is to
use the MDY function
Sasdate=MDY(month,day,year);
Note that there is a similar function DHMS which converts a SAS date
value plus hour, min, and seconds into a SAS datetime value.
Nat Wooding
"Tonkovich, Mike"
<Mike.Tonkovich@D
NR.STATE.OH.US>
To
Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU
Discussion"
cc
<SAS-L@LISTSERV.U
GA.EDU>
Subject
3 variables to one SAS date value
01/23/2006 07:39
AM
Please respond to
"Tonkovich, Mike"
<Mike.Tonkovich@D
NR.STATE.OH.US>
Good morning SASers!
I would be indebted if someone could help me with a really simple task
(for you, not me)! I've got 3 numeric variables (month, day, year) and
I want to join them to create a single SAS date. Ideally, I would like
to do this inside Eguide, but I'll take whatever help I can get at this
point.
Thank you very much.
Mike
Michael J. Tonkovich, Ph.D.
Wildlife Research Biologist
ODNR, Division of Wildlife
360 E. State St.
Athens, OH 45701
v(740)589.9920 f(740)589.9925
mike.tonkovich@dnr.state.oh.us
-----------------------------------------
CONFIDENTIALITY NOTICE: This electronic message contains information
which may be legally confidential and/or privileged and does not in any
case represent a firm ENERGY COMMODITY bid or offer relating thereto
which binds the sender without an additional express written
confirmation to that effect. The information is intended solely for the
individual or entity named above and access by anyone else is
unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution, or use of the contents of this information is
prohibited and may be unlawful. If you have received this electronic
transmission in error, please reply immediately to the sender that you
have received the message in error, and delete it. Thank you.
|