This section
explains how SAS data is read into Microsoft Excel data when a table
is loaded. In this conversion, the SAS character data type is converted
into the Microsoft Excel label type and the SAS numeric type is converted
into the Microsoft Excel number type.
The
SAS/ACCESS interface automatically converts SAS
formats to the same or associated Microsoft Excel formats and column
widths. You can temporarily assign other formats and column widths
to SAS variables by using the FORMAT statement. The loaded XLS file
columns have the formats that you want.
Note: The FORMAT statement in the
DBLOAD procedure only changes the format of SAS variables while you
are creating and loading the XLS files. When the procedure is completed,
the formats of SAS variables return to their original settings.
The following table
shows SAS variable types and formats and the XLS data types, formats,
and column widths to which you can assign them. XLS date and time
values are numeric data.
Converting SAS Variable Formats to XLS File Data
Excel column widths
are set to
w and display in
the column. If the data is larger than column width, it displays as
pound signs (###). In that case, you can view it by adjusting the
column width.