由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - Proc import 读excel文件,怎么略去前面几行?
相关主题
请教如何同时用sas打开多个excel文件?多谢!reading data into sas 问题
SAS proc import excel file 紧急求助help on importing csv file to SAS
SAS 数据读入的问题 (proc import)SAS macro to import multiple csv file??
Help:import excel file into sasSAS date format 的问题
questions about SAS import Excel data[合集] excel data
@@请教用SAS import CSV 文件时遇到的状况proc export to Excel: can not read it!
SAS的一个小问题sas importing question
请教:多个csv文件(>100)怎么用"proc sql" merge成一个文件?what is the problem?
相关话题的讨论汇总
话题: note话题: excel话题: import话题: datarow话题: statement
进入Statistics版参与讨论
1 (共1页)
p**5
发帖数: 2544
1
比如,数据是从第五行开始的?
w****a
发帖数: 114
2
obs=5
d*******o
发帖数: 493
3
Transforming Excel to CSV , tab-delimited text or fixed-width text may be a
good option. You will have more control over there.
p**5
发帖数: 2544
4
obs=5 是不是读取5个obs?
datarow = 5 ?

【在 w****a 的大作中提到】
: obs=5
p**5
发帖数: 2544
5
谁能看看这个error?谢谢
191
192 PROC IMPORT OUT= WORK.text
193 DATAFILE= "D:\Journal\2009_IF.xls"
194 DBMS=EXCEL REPLACE;
NOTE: The previous statement has been deleted.
NOTE: The previous statement has been deleted.
NOTE: The previous statement has been deleted.
NOTE: The previous statement has been deleted.
195 GETNAMES=NO;
NOTE: The previous statement has been deleted.
196 DATAROW=5;
-------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
197 MIXED=NO;
198 SCANTEXT=YES;
199 USEDATE=YES;
200 SCANTIME=YES;
201 RUN;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.00 seconds
cpu time 0.00 second
d**********r
发帖数: 24123
6
Excel import dont have that ability. You have to save as csv or remove the
rows yourself.
p**5
发帖数: 2544
7
okay, I believe you. Thanks for all replies.
but what is the function of "DATAROW =" option?

【在 d**********r 的大作中提到】
: Excel import dont have that ability. You have to save as csv or remove the
: rows yourself.

d**********r
发帖数: 24123
8
Datarow = is the starting row of import, but EXCEL import (DBMS=EXCEL) do
not allow this option.
Instead, you can use XLS import (DBMS=XLS) and use option
startrow=
endrow=

【在 p**5 的大作中提到】
: okay, I believe you. Thanks for all replies.
: but what is the function of "DATAROW =" option?

p**5
发帖数: 2544
9
Thanks again.

【在 d**********r 的大作中提到】
: Datarow = is the starting row of import, but EXCEL import (DBMS=EXCEL) do
: not allow this option.
: Instead, you can use XLS import (DBMS=XLS) and use option
: startrow=
: endrow=

k*****u
发帖数: 1688
10
re
这个菜靠谱
我一次也琢磨这个好久

【在 d**********r 的大作中提到】
: Datarow = is the starting row of import, but EXCEL import (DBMS=EXCEL) do
: not allow this option.
: Instead, you can use XLS import (DBMS=XLS) and use option
: startrow=
: endrow=

1 (共1页)
进入Statistics版参与讨论
相关主题
what is the problem?questions about SAS import Excel data
再看SAS in stock market 这本书 有啥数据库可以拿来联系的吗@@请教用SAS import CSV 文件时遇到的状况
帮我看看如何导入.dat file into sas吧SAS的一个小问题
笨人sas/excel 问题请教:多个csv文件(>100)怎么用"proc sql" merge成一个文件?
请教如何同时用sas打开多个excel文件?多谢!reading data into sas 问题
SAS proc import excel file 紧急求助help on importing csv file to SAS
SAS 数据读入的问题 (proc import)SAS macro to import multiple csv file??
Help:import excel file into sasSAS date format 的问题
相关话题的讨论汇总
话题: note话题: excel话题: import话题: datarow话题: statement