LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 21 May 2008 11:11:39 -0400
Reply-To:     Nathaniel.Wooding@DOM.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject:      Re: Changing Default DATETIMEnn print format
Comments: To: Friar Broccoli <EliasRK@GMAIL.COM>
In-Reply-To:  <74a6553d-59af-4925-b7c0-9cc991b5984f@x35g2000hsb.googlegroups.com>
Content-Type: text/plain; charset="US-ASCII"

Brother Broc

This would appear to be a job for

IS8601DT datetime YYYY-MM-DDThh:mm:ss[.fffff]

Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977

Friar Broccoli <EliasRK@GMAIL.CO M> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject Changing Default DATETIMEnn print format 05/21/2008 10:48 AM

Please respond to Friar Broccoli <EliasRK@GMAIL.CO M>

When doing a PROC PRINT of data containing a DATETIMEnn value the default output format looks like:

21MAY2007:17:37:00

which is a real pain because such text cannot be sorted by tools outside of SAS.

Is there some way of changing the *DEFAULT* behavior so the result looks more like:

2007-05-21:17:37:00

I'm not hopeful that this is possible, but if I don't ask ...

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


Back to: Top of message | Previous page | Main SAS-L page