The FORMAT Procedure |
Procedure features: |
|
This example does the following:
specifies directives for formatting date, time, and datetime values by using the DATATYPE= statement option
specifies a language for the format by using the LANGUAGE= statement option
creates the ALLTEST format
Program |
proc format; picture mdy(default=8) other='%0m%0d%Y' (datatype=date); picture langtsda (default=50) other='%A, %B,%d, %Y' (datatype=date); picture langtsdt (default=50) other='%A, %B,%d, %Y' (datatype=datetime); picture langtsfr (default=50) other='%A, %B,%d, %Y' (datatype=datetime language=french); picture alltest (default=100) other='%a %A %b %B %d %H %I %j %m %M %p %S %w %U %y %%' (datatype=datetime); run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.