SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 31753: SAS® Web Report Studio might export zeros as text values that contain many decimal places

DetailsHotfixAboutRate It

When exporting a SAS Web Report Studio report to Excel, zeros might be exported as text and include many decimal places.

This can occur because Excel treats numeric values as text when the number of digits exceeds 30. For example, a raw value such as 0.000000000000007105427357601002, which has 31 digits, might display as 0 in the report and as 0 in the underlying physical table (due to an applied format). However, the number of digits in the raw value causes Excel to treat the value as text.

When Excel receives such a number, it displays the following Problems During Load dialog box.

dialog saying that there's a problem with a cell value

If you click OK, Excel will display the spreadsheet and flag the cell as Number stored as text.

As a workaround, you can select Convert to Number from the cell menu. However, the number will then appear in exponential notation (e.g., 7.105427357601E-15) because Excel truncates numeric values with more than 15 digits.

image label

The plan for the next major release of SAS Web Report Studio is to export such values in scientific notation together with the Excel format mso-number-format:'0.0'. The combination of scientific notation plus the Excel format will cause Excel to display the exported value as 0.0 (although the actual Excel value will remain in scientific notation).



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Web Report StudioMicrosoft® Windows® for x643.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows 2000 Advanced Server3.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows 2000 Datacenter Server3.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows 2000 Server3.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows 2000 Professional3.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows NT Workstation3.19.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition3.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition3.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Standard Edition3.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows XP Professional3.14.29.1 TS1M3 SP49.2 TS2M0
Windows Vista3.14.29.1 TS1M3 SP49.2 TS2M0
64-bit Enabled AIX3.14.29.1 TS1M3 SP49.2 TS2M0
64-bit Enabled Solaris3.14.29.1 TS1M3 SP49.2 TS2M0
HP-UX IPF3.14.29.1 TS1M3 SP49.2 TS2M0
* 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.