标题: 求教transport文件的数据集导入 [打印本页] 作者: shiyiming 时间: 2004-1-31 20:22 标题: 求教transport文件的数据集导入 一个合作方的数据集需要导入,我用了下面的程序,但是出现以下错误信息,请打侠指教。
ERROR: CIMPORT is not able to read XPORT engine data sets.
NOTE: Please refer to the host companion for your operating system.
程序:
libname new 'd:\sas-work\';
filename trans 'd:\sas-work\sa3012ui.trans';
proc cimport library=new infile=trans;
run;作者: shiyiming 时间: 2004-2-1 04:06
You have to be sure if the data file is really a transport file, and you have to also find out with which procedure the tranport file was created. It is not trivial, since both Proc Xport and Proc Copy can create tranport file, and in SAS 8.2 and above, Unix and Window can share data without Xport Engine.作者: shiyiming 时间: 2004-2-1 21:15 标题: 请详细解释一下 谢谢信息,看了原数据是用xport engine打包的,我查了一下帮助,试着用下面语句,运行后建立了一个新的lib,并且包含一个空数据集,不知如何将数据也导入该表? 请指教。
libname new xport 'd:\tmp\uh.trans';
run;作者: shiyiming 时间: 2004-2-1 21:25 标题: 问题解决了,谢谢各位 应当使用copy过程。
libname insource xport 'd:\tmp\uh.trans';
proc copy in=insource out=work;
run;