由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - Import excel file to sas (the first 8 or more observations
相关主题
sas questionSAS proc import excel file 紧急求助
SAS format 的问题proc import problem
SAS问题请教:Numeric Variable Length的设定新人报道,兼问SAS data set的问题
问个sas日期小白问题SAS Macro 问题请教 。。。
请教工作中遇到的correlation问题急问一个SAS 的常见问题
[合集] a small question on SAS data importhelp for sas program
[合集] 问一个SAS 从excel import数据的问题问一个sas问题
[合集] 面试求教 Proc Import from Excel options召唤!向大家请教1个sas 问题
相关话题的讨论汇总
话题: sas话题: import话题: variables话题: excel
进入Statistics版参与讨论
1 (共1页)
o******6
发帖数: 538
1
Some variables in the original excel file are numeric but have no value for
the first 8 observation. When I import the file , these
variables become character variables and their value are all missing. I know
SAS uses the first 8 observations to determine the variable type, does
anyone know how to fix it? Do I need change some SAS setting? Thanks, the only biostatistician in my group didn't help me (no problem in his computer) and I usually figure it out by myself :(.
PROC IMPORT OUT= WORK.a
t**i
发帖数: 688
2
Can you move the ninth row to the top?
o******6
发帖数: 538
3
It's not a good idea. The same sas code run successfully in my colleague's computer.
He may know how to fix it but he never teach me. I believe it is related to the setting, anyone can help me?

【在 t**i 的大作中提到】
: Can you move the ninth row to the top?
f********t
发帖数: 117
4
maybe try MIXED=YES;
o******6
发帖数: 538
5
Yes,it works and the variables become character variables. I can use input
function to change them to the numeric variables. But why does the original
code work in my coworker's computer? Is there any simple way to fix it such
as changing the setting?

【在 f********t 的大作中提到】
: maybe try MIXED=YES;
p********a
发帖数: 5352
6
guessingrows=100; works only for certain higher SAS versions or certain
lower version with parameters changed.
o******6
发帖数: 538
7
Thanks a lot. It doesn't work for my SAS version. My Korea coworker's SAS
version (9.1) is the same as mine. I don't know how he fixes it:( .I may
have to use the stupid way to fix the problem if I cannot figure it out and
I don't like this idea.

【在 p********a 的大作中提到】
: guessingrows=100; works only for certain higher SAS versions or certain
: lower version with parameters changed.

o******6
发帖数: 538
8
I found the following information. Hope it works.
The solution to this problem is to scan more than the first eight rows. We
don't have a SAS solution; this involves the Windows registry. If you are
comfortable working with the Windows registry, here's the process.
1. Back-up the registry!
2. Find HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel.
3. Double click on TypeGuessRows.
4. Change the value to 0. (All rows are scanned when the value is 0.)

for
know
only biostatistician in my

【在 o******6 的大作中提到】
: Some variables in the original excel file are numeric but have no value for
: the first 8 observation. When I import the file , these
: variables become character variables and their value are all missing. I know
: SAS uses the first 8 observations to determine the variable type, does
: anyone know how to fix it? Do I need change some SAS setting? Thanks, the only biostatistician in my group didn't help me (no problem in his computer) and I usually figure it out by myself :(.
: PROC IMPORT OUT= WORK.a
:

o******6
发帖数: 538
9
我今天试啦,WORK了,嘻嘻,真郁闷我的韩国同事什么都不告诉我,而我还什么都告诉
他,是不是工作了几年的人都这样呀?

【在 o******6 的大作中提到】
: I found the following information. Hope it works.
: The solution to this problem is to scan more than the first eight rows. We
: don't have a SAS solution; this involves the Windows registry. If you are
: comfortable working with the Windows registry, here's the process.
: 1. Back-up the registry!
: 2. Find HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel.
: 3. Double click on TypeGuessRows.
: 4. Change the value to 0. (All rows are scanned when the value is 0.)
:
: for

1 (共1页)
进入Statistics版参与讨论
相关主题
召唤!向大家请教1个sas 问题请教工作中遇到的correlation问题
[合集] 生物统计硕士找工作,药厂SAS Programmer vs非药厂Biostatis[合集] a small question on SAS data import
受不了EXCEL了(包子请教 proc report ods excel file)[合集] 问一个SAS 从excel import数据的问题
[Hiring: Statistical Programmer][合集] 面试求教 Proc Import from Excel options
sas questionSAS proc import excel file 紧急求助
SAS format 的问题proc import problem
SAS问题请教:Numeric Variable Length的设定新人报道,兼问SAS data set的问题
问个sas日期小白问题SAS Macro 问题请教 。。。
相关话题的讨论汇总
话题: sas话题: import话题: variables话题: excel