Date: Wed, 21 Jan 2009 06:31:56 -0500
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject: Re: Date with time - import from excel
Content-Type: text/plain; charset="US-ASCII"
On your set statement, add a SASDATEFMT option as I did in the line below.
Hopefully, this will fix the problem.
set FISHi.'FISHgeneric$'n (sasdatefmt=( datetime ='datetime16.')) ;
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977
Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU
Date with time - import from excel
Please respond to
I'm importing a file from excel and the date is in this format
I need the time but when I import the file even if I specify that is a
16 digit date SAS imports it wrongly and it gives me a wrong date.
Can anyone advise on how to import it correctly?
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.