Date: Fri, 9 Jun 2006 12:16:40 -0400
Reply-To: "Gerstle, John (CDC/NCHSTP/DHAP) (CTR)" <yzg9@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Gerstle, John (CDC/NCHSTP/DHAP) (CTR)" <yzg9@CDC.GOV>
Subject: Day-of-week Date Time Format
Content-Type: text/plain; charset="us-ascii"
I'm not having any luck finding the format name that is used in the PROC
CONTENTS ATTRIBUTE table for Created and Last Modified dattime
variables. If you run a PROC CONTENTS, then you may see something like
this in the 4th row of the first table:
Created Sunday, June 04, 2006 06:20:06 PM
When you put this into a dataset, via ODS OUTPUT ATTRIBUTE=attrib;, then
nValue for Created is a datetime numeric, 1465064406. I'd like to
format this value to resemble the above Day-of-Week, Date, Time
Anyone know this? I've searched SAS, SAS Doc's, and SAS-L Archive, and
haven't found the answer.
Did find out about: NLDATMw. and DTWKDATXw. , but neither give me the
above. (The former gives 04Jun06:18:20:06, while the latter gives
Sunday, June 04, 2006).
John Gerstle, MS
CDC Information Technological Support Contract (CITS)
NCHSTP \DHAP \HICSB \Research, Analysis, and Evaluation Section
Centers for Disease Control and Prevention
"As far as the laws of mathematics refer to reality, they are not
certain; and as far as they are certain, they do not refer to reality."
Albert Einstein, addressing the Prussian Acadamy of
Science, Berlin , Jan 27, 1921
"Boss. We've got cats." "Meow"