SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

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

excel import 到sas 的problem

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2009-2-2 00:01:59 | 只看该作者

excel import 到sas 的problem

我是一名sas 的初學者, 在用excel import sas 方面遇到問題.
如下

59   PROC IMPORT DATAFILE = 'C:\Documents and Settings\Desktop\WARRANT
60   \warrant_200506.xls' OUT= China;
ERROR: Unable to determine datasource type.  Please use the DBMS= option


61   PROC PRINT DATA = China;
ERROR: File WORK.CHINA.DATA does not exist.
62   TITLE ' Warrant'
63   Run;
WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.

不知是什么問題?

謝謝
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2009-2-3 05:30:30 | 只看该作者

Re: excel import 到sas 的problem

1) Please try the following:

dbms=EXCEL  if it is a Excel 2000 or 2002 spreadsheet .xls Microsoft Windows *
dbms=EXCEL4 if it is Excel 4.0 spreadsheet .xls Microsoft Windows
dbms=EXCEL5 if it is Excel 5.0 or 7.0 (95) spreadsheet .xls Microsoft Windows
dbms=EXCEL97 if it is Excel 97 or 7.0 (95) spreadsheet .xls Microsoft Windows *
dbms=EXCEL2000 if it is Excel 2000 spreadsheet .xls Microsoft Windows *

2) For the error about the title statement, please add a ";" after your title statement.
title '...';
run;
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2009-2-3 11:31:32 | 只看该作者

Re: excel import 到sas 的problem

Thanks~
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-2-5 08:51 , Processed in 0.279512 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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