lubolengting 发表于 2010-3-14 20:10 
本人对SAS纯文盲,因为需要使用SAS中的部分数据,所以急需高手的帮忙。
传送文件中的数据不能直接打开,因为数据变量太多,直接导出到EXCEL中又会丢失变量,希望各位高手帮忙解决,本人不胜感激!!!!!!!!
xport is very old type file. Anyway, you need specify a library reference to
that file(not directory) as in example below, then it can be as regular sas data set.
9 libname s xport 'c:\downloads\test.xport';
NOTE: Libref S was successfully assigned as follows:
Engine: XPORT
Physical Name: c:\downloads\test.xport
40
41 data s.test;
42 x=1;
43 run;
NOTE: The data set S.TEST has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.00 seconds
44
45 data t2;
46 set s.test;
47 run;
NOTE: There were 1 observations read from the data set S.TEST.
NOTE: The data set WORK.T2 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
48
49 proc print; run;
NOTE: There were 1 observations read from the data set WORK.T2.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds