Usage Note 39964: Understanding how numeric date variables that are defined as categories with a user-defined format are handled when exported to Microsoft Excel
SAS® Information Map Studio enables you to change the classification of a numeric variable to a category data item. These data items can also have applied user-defined formats. This usage note explains how these two settings impact the results when they are exported from SAS® Web Report Studio 4.2 running with the third maintenance release for SAS 9.2 (TS2M3) or later.
This usage note focuses on numeric date variables. For an explanation of the exporting behavior when the numeric data item is not a date, see SAS Note 39963.
This example focuses on a numeric variable named Date. The following display shows the Date variable defined as a numeric in the table metadata.
This view shows that the data item is being created as date when selected for the information map.
The display below shows Date defined as a Category data item in an information map. A user-defined format is also applied.
When this data item is used in a SAS Web Report Studio report, the user-defined format is applied to the results.
When you export this report to Excel, you will be able to filter values based on the character values specified by the user-defined format, rather than based on the original numeric values. However, sorting is performed on the original numeric value. Sorting is handled in this way so that the dates sort in chronological order and not alphabetical order.
If you are running a release prior to the third maintenance release for SAS 9.2 (TS2M3), the user-defined format is not used in Excel, and filtering is done on the original numeric values.
Operating System and Release Information
SAS System | SAS Web Report Studio | z/OS | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft® Windows® for x64 | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Datacenter Edition | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Enterprise Edition | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft Windows Server 2003 Standard Edition | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft Windows Server 2003 for x64 | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft Windows Server 2008 | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft Windows Server 2008 for x64 | 4.2_M2 | | 9.2 TS2M3 | |
Microsoft Windows XP Professional | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Enterprise 32 bit | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Enterprise x64 | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Home Premium 32 bit | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Home Premium x64 | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Professional 32 bit | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Professional x64 | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Ultimate 32 bit | 4.2_M2 | | 9.2 TS2M3 | |
Windows 7 Ultimate x64 | 4.2_M2 | | 9.2 TS2M3 | |
Windows Vista | 4.2_M2 | | 9.2 TS2M3 | |
Windows Vista for x64 | 4.2_M2 | | 9.2 TS2M3 | |
64-bit Enabled AIX | 4.2_M2 | | 9.2 TS2M3 | |
64-bit Enabled Solaris | 4.2_M2 | | 9.2 TS2M3 | |
HP-UX IPF | 4.2_M2 | | 9.2 TS2M3 | |
Linux for x64 | 4.2_M2 | | 9.2 TS2M3 | |
Solaris for x64 | 4.2_M2 | | 9.2 TS2M3 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2010-06-24 15:34:44 |
Date Created: | 2010-06-10 16:36:09 |