源数据:
Scale Number
1-3 1
3-7 2
在SAS中,Scale 是character.
用以下code导入excel:
ods listing close;
ods html file="Desktop\a.xls";
proc print data=a noobs;
var scale number;
run;
ods html close;
ods listing;
Excel中的结果是:
Scale Number
3-Jan 1
7-Mar 2
求问高手,对于变量Scale,如何保持SAS和Excel中的格式一致?
多谢!!