标题: 求助:SAS2EXCEL? [打印本页] 作者: shiyiming 时间: 2006-4-7 13:30 标题: 求助:SAS2EXCEL? 如何将SAS数据集中的18位身份证号(全为数字)和相应的变量描述正确地到导出到Excel?作者: shiyiming 时间: 2006-4-13 02:57 标题: sas2excel First, change the ID column to text format on Excel, then save it.
SAS code:
filename myid DDE 'Excel|c:\mydir\[myexcelname.xls]sht1!r2c1:r10c5';
data _null_;
set idset;
file myid;
put id '09'x age '09'x.......;
run;