|
Would the IS8601DT format suite your needs. You can associate this
format with all datetime variable in all data sets. Then it is the
"default" when using proc print or any other proc.
If this is not suitable you can create a PICTURE format that will
display dates, times, and datetimes in almost any arrangement you can
imagine.
data dt;
dt='21MAY2007:17:37:00'dt;
format dt is8601dt.;
run;
proc print;
run;
2007-05-21T17:37:00
On 5/21/08, 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 ...
>
|