楼主: supershang
72664 35

[SAS] 如何把excel中的数据导入sas中啊? [推广有奖]

11楼
wtcnb 发表于 2007-4-21 00:44:00
<P>sorry, should be this way as below:</P>
<P><FONT color=#ff0000>proc import</FONT></P>
<P><FONT color=#ff0000>datafile='your directory\a.xls'</FONT></P>
<P><FONT color=#ff0000>out=a</FONT></P>
<P><FONT color=#ff0000>dbms=excel replace;</FONT></P>
<P><FONT color=#ff0000>run;</FONT></P>
已有 1 人评分论坛币 收起 理由
bakoll + 10 精彩帖子

总评分: 论坛币 + 10   查看全部评分

12楼
shgch 发表于 2007-4-21 11:02:00
PROC IMPORT OUT= WORK.m02 <BR>            DATAFILE= "C:\Documents and Settings\Administrator\Desktop\index\02.xls" <BR>            DBMS=EXCEL2000 REPLACE;<BR>     GETNAMES=YES;<BR>RUN;<BR>

13楼
babala76 发表于 2007-6-25 13:39:00
xiexiele

14楼
lavender7140 发表于 2007-6-25 15:41:00
<P>用cards命令把数据考过来就行了啊.</P>

15楼
ben_qiang 发表于 2010-12-13 08:32:30
10# wtcnb
好办法!!!

16楼
leedx 发表于 2010-12-13 10:54:40
kuhasu 发表于 2007-4-20 02:40
你需要加装hotfix,是bug
hotfix是什么东东~

17楼
5342 发表于 2011-2-27 13:02:15
SAS目前支持office2007以前版本excel文件的数据导入,导入用的就是过程步import,具体代码10楼写出来了

18楼
D_Rhythm 发表于 2011-4-18 10:42:36
学习一下,纯新手

19楼
sas_user 发表于 2011-4-18 13:32:13
8# erhyin
学习了,谢谢指导。

20楼
myc_sas 发表于 2011-4-18 16:07:57
借此问个问题,用proc import 导入 excel数据和用 libname导入的区别是什么?好像大家都推荐用proc import么

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

客服
GMT+8, 2026-12-3 17:08