Problem Note 58526: The ddmmyy10. format writes different values to different sheets when you are using the XLSX driver to export to EXCEL
Date values formatted with the ddmmyy10. format might look different when you export data to Excel workbooks using the XLSX driver. Here are some examples:
ods listing close;
proc sort data=sashelp.prdsale out=prdsale;
by Country;
run;
data mydata;
x = "01JAN2015"d;
format x ddmmyy10.;
run;
/*---1st sheet OK, 2nd sheet wrong format---*/
proc export
data=mydata
dbms=xlsx
outfile="C:\sastest\datumtest.xlsx";
sheet="test1";
run;
proc export
data=mydata
dbms=xlsx
outfile="C:\sastest\datumtest.xlsx";
sheet="test2";
run;
The value shown in the test1 sheet is 1/1/2015, and in the test2 sheet it is 1-Jan-15.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | Microsoft® Windows® for x64 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8 Enterprise 32-bit | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8 Enterprise x64 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8 Pro 32-bit | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8 Pro x64 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 8.1 Pro x64 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows 10 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows Server 2008 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows Server 2008 R2 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows Server 2008 for x64 | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows Server 2012 Datacenter | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows Server 2012 R2 Std | 9.4_M2 | | 9.4 TS1M2 | |
Microsoft Windows Server 2012 Std | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Enterprise x64 | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Home Premium 32 bit | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Home Premium x64 | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Professional 32 bit | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Professional x64 | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Ultimate 32 bit | 9.4_M2 | | 9.4 TS1M2 | |
Windows 7 Ultimate x64 | 9.4_M2 | | 9.4 TS1M2 | |
64-bit Enabled AIX | 9.4_M2 | | 9.4 TS1M2 | |
64-bit Enabled Solaris | 9.4_M2 | | 9.4 TS1M2 | |
HP-UX IPF | 9.4_M2 | | 9.4 TS1M2 | |
Linux for x64 | 9.4_M2 | | 9.4 TS1M2 | |
Solaris for x64 | 9.4_M2 | | 9.4 TS1M2 | |
*
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.
When you write to Excel workbooks, date values that use the ddmmyy10. format might look different, depending on the sheet.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2016-08-08 11:39:31 |
Date Created: | 2016-06-29 12:41:12 |