10-24-2014 11:31 AM
It looks like PROC IMPORT's option MIXED = YES doesn't work with Excel 2007. It works perfectly with Excel 2003.
Is there any work around?
I don't want to assign format in data step for 100 variables.
10-24-2014 01:08 PM
Define "doesn't work". Do you get error messages? Unexpected result?
If you show the complete syntax and post an example of the data it doesn't work for you may get a more helpful response, otherwise you'll be getting guesses.
10-28-2014 02:41 PM
10-28-2014 02:59 PM
10-28-2014 03:41 PM
MIXED= only works with DBMS=EXCEL setting from the documentation in SAS 9.3.
You might try adjusting the TypeGuessRow registry key setting for the version of Office you have (online SAS help has key depending on versions installed). The default setting by OFFICE, not SAS, is apparently 8 rows to guess whether a column is text or numeric on export.
10-28-2014 04:18 PM
As further clarification MIXED = works with DBMS = XLS and XLSX in SAS 9.3 regardless of what the documentation says. In SAS 9.4 only MIXED = with DBMS = EXCEL now works, you will get an error if you use the other types. So only 9.4 is consistent with the documention.
We struck this problem while testing our SAS 9.3 to 9.4 migration.
DBMS = EXCEL should work for most Excel versions. I've tested it successfully with 2010.