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:34:07 -0400
Reply-To:     Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:      Re: Changing Default DATETIMEnn print format

a example:

proc format; picture dttest low-high = '%0Y-%0m-%0d:%0H:%0M:%0S' (datatype=DATETIME) ; run; data x; x=datetime(); put x dttest.; run;

Gerhard

On Wed, 21 May 2008 07:48:58 -0700, Friar Broccoli <EliasRK@GMAIL.COM> wrote:

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


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