I know that I can change the display format of a date variable in SAS using something like the following:
data junk0;
x = date();
format x yymmddd10.;
run;
Could someone show me how to set the default display format for date
variables to something other than the system default: date9.
?
With your solution the following:
<your SAS magic here>
data junk1:
x = date();
y = date()-1;
run;
would format both x
and y
properly, just because they are date
variables.
I have done some homework, but none of the following links (although great), help me figure this out: