全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
7837 4
2010-03-14
本人对SAS纯文盲,因为需要使用SAS中的部分数据,所以急需高手的帮忙。
传送文件中的数据不能直接打开,因为数据变量太多,直接导出到EXCEL中又会丢失变量,希望各位高手帮忙解决,本人不胜感激!!!!!!!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-3-14 21:52:27
谁帮帮我啊?、、、、、、、
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-3-14 22:10:58
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
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-4-19 15:00:59
我写论文的时候也遇到了这个问题,我是这样打开的:
libname xptfile xport "C:\Users\c04.09052006\C04ADULT.xpt";
libname sasfile2 "C:\Users\data";
proc copy in=xptfile out=sasfile2 memtype=data;
run;



希望有帮助。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-5-16 18:28:26
big3211 发表于 2011-4-19 15:00
我写论文的时候也遇到了这个问题,我是这样打开的:
libname xptfile xport "C:\Users\c04.09052006\C04AD ...
非常感谢,我打开了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群