我正在从 excel 中导入一个文件,如下所示:
Row Col Bucket
1 2 01
2 2 00
%Macro ImportExcel(DF = , OF = , Type = , SheetName = );
proc import datafile = &DF
out = &OF dbms = &Type replace;
sheet = "&Sheetname";
run;
%Mend;
%ImportExcel(DF = "C:\Users\89974114\Documents\Book1.xlsx" , OF = Book1 , TYPE = xlsx , SheetName = Sheet1);
当我导入文件时,数据集看起来像这样
Row Col Bucket
1 2 1
2 2 0
本质上,我从 excel 中丢失了我的自定义格式,它恢复为无默认、无前导零的格式 - 有没有办法解决这个问题?