1.10. Selected Standard Formats

SAS formats (also called display formats) tell SAS Enterprise Guide how to display or print data. You can apply formats in the column Properties window of a Data Grid, in the Properties window within a task, or in a query. Here are a few of the many formats available in SAS Enterprise Guide.

FormatDefinitionWidth rangeDefault width
Character
$UPCASEw.Converts character data to uppercase1–32767Length of variable or 8
$w.Writes standard character data—default for character data1–32767Length of variable or 1
Date, Time, and Datetime[1]
DATEw.Writes SAS date values in form ddmonyy or ddmonyyyy5–97
DATETIMEw.dWrites SAS datetime values in form ddmmmyy:hh:mm:ss.ss7–4016
DTDATEw.Writes SAS datetime values in form ddmonyy or ...

Get The Little SAS® Book for Enterprise Guide® 4.1 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.