我想使用.xls
导入proc import
文件。虽然我只需要其中一个电子表格(“CC”)的部分范围(A10:O47)。并且标题是本地范围(A9:O9)。我正在使用ms excel 2007.
proc import
out = work.testing
datafile = "C:\User\Yin\Desktop\Book.xls"
dbms = excelcs replace;
sheet = "CC";
/*range = "A10:O47";*/
namerow = 9;
startrow = 10;
run;
日志中有错误消息:对于namerow = 9;
28 proc import
29 out = work.testing
30 datafile = "C:\User\Yin\Desktop\Book.xls"
31 dbms = excelcs replace;
NOTE: The previous statement has been deleted.
NOTE: The previous statement has been deleted.
32 sheet = "CC";
33 /*range = "A10:O47";*/
34 namerow = 9;
-------
180
35 startrow = 10;
--------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
36 run;
感谢。
答案 0 :(得分:1)
来自文档,"仅适用于DBMS = XLS以实现向后兼容"
出现这些选项不适用于excelcs。
http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103761.htm