另外,目前我想了一个比较弱智的方法,就是用用datasets过程,将数据集中所有的标签先显示出来,然后手动黏贴到excel,跟变量名对应起来。下面是我使用的命令和结果:
proc datasets library=tmp1;
contents data=m07cropt;
run;
结果:
The SAS System 18:45 Thursday, June 10, 2009 1
The DATASETS Procedure
Data Set Name TMP1.M07CROPT Observations 21542
Member Type DATA Variables 21
Engine V9 Indexes 0
Created Monday, January 28, 2008 08:46:29 AM Observation Length 160
Last Modified Monday, January 28, 2008 08:46:29 AM Deleted Observations 0
Protection Compressed NO
Data Set Type