SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 1790|回复: 2
打印 上一主题 下一主题

need help for proc cimport

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2013-5-23 05:52:42 | 只看该作者

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!!!
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2013-5-24 10:19:35 | 只看该作者

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 -->
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2013-5-25 19:16:03 | 只看该作者

Re: need help for proc cimport

什么叫'transportable file',这和一般的SAS data有何区别?
谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-5-2 19:03 , Processed in 0.069160 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表