SAS中文论坛

标题: need help for proc cimport [打印本页]

作者: shiyiming    时间: 2013-5-23 05:52
标题: need help for proc cimport
libname dp 'D:\Documents and Settings\xyz\Desktop';
data dp.class; set sashelp.class;run;

libname aa 'D:\Documents and Settings\xyz\Desktop\abc';
filename cc 'D:\Documents and Settings\xyz\Desktop\class.sas7bat';

proc cimport library=aa infile=cc;
run;
-----------------------------------------------------------
I am learning PROC CIMPORT. As an example, I run the code above, but got error:
ERROR: Physical file does not exist, D:\Documents and Settings\tianm\Desktop\class.sas7bat.
So anyone can explain what is the PROC CIMPORT purpose, and how to correct the code above?

thx!!!
作者: shiyiming    时间: 2013-5-24 10:19
标题: Re: need help for proc cimport
Your input needs to be a SAS transportable file generated by PROC CPORT, the counterpart of PROC CIMPORT. And you don't learn simple procedures such as PROC CIMPORT/CPORT until you really need them.
<!-- m --><a class="postlink" href="http://support.sas.com/documentation/cdl/en/movefile/59598/HTML/default/viewer.htm#a002572079.htm">http://support.sas.com/documentation/cd ... 572079.htm</a><!-- m -->
作者: shiyiming    时间: 2013-5-25 19:16
标题: Re: need help for proc cimport
什么叫'transportable file',这和一般的SAS data有何区别?
谢谢!




欢迎光临 SAS中文论坛 (http://www.mysas.net/forum/) Powered by Discuz! X3.2