楼主: cxu07
2250 4

[求助] sas no records read [推广有奖]

  • 0关注
  • 0粉丝

大专生

70%

还不是VIP/贵宾

-

威望
0
论坛币
735 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
16440 点
帖子
17
精华
0
在线时间
107 小时
注册时间
2007-3-7
最后登录
2022-8-27

楼主
cxu07 发表于 2007-3-27 22:32:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

Following code is submitted:

data birth;

infile 'C:\sas\project\birth.xls' firstobs=2 obs=20 missover;

input id BIRTHDTF :$8.;

run;

proc print data = birth;

run;

In the log you got this:

NOTE: 0 records were read from the infile 'C:\sas\project\birth.xls'.

NOTE: The data set WORK.BIRTH has 0 observations and 2 variables.

the file has 20 observations and sas won't read them, and don't know what is wrong, please help, thanks.

二维码

扫码加我 拉你入群

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

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

关键词:RECORDS Record READ cor RDS 求助 SAS READ RECORDS

回帖推荐

sumc 发表于4楼  查看完整内容

PROC IMPORT OUT= BIRTH DATAFILE= "C:\sas\project\birth.xlS" DBMS=EXCEL REPLACE; SHEET="Sheet1$"; GETNAMES=YES; MIXED=NO; SCANTEXT=YES; USEDATE=YES; SCANTIME=YES;RUN; [此贴子已经被作者于2007-3-28 11:16:09编辑过]

本帖被以下文库推荐

沙发
ygh7814 发表于 2007-3-28 08:05:00
This is xls file. You must use other statement.

藤椅
yaolixiang 发表于 2007-3-28 09:08:00
用ODBC把EXCLE导入

板凳
sumc 发表于 2007-3-28 11:16:00

PROC IMPORT OUT= BIRTH
DATAFILE= "C:\sas\project\birth.xlS"
DBMS=EXCEL REPLACE;
SHEET="Sheet1$";
GETNAMES=YES;
MIXED=NO;
SCANTEXT=YES;
USEDATE=YES;
SCANTIME=YES;
RUN;

[此贴子已经被作者于2007-3-28 11:16:09编辑过]

已有 1 人评分论坛币 收起 理由
bakoll + 10 精彩帖子

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

报纸
cxu07 发表于 2007-3-28 22:53:00

Thank you all for your help, I have got it using Sumc's code.

There is no problem when Using proc Import to get records but why infile won't work?

Do I need Hot fix ?

Thanks.

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-29 20:19