由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - sas question
相关主题
Import excel file to sas (the first 8 or more observationsproc import problem
SAS format 的问题请教一个proc transpose的问题
SAS问题请教sas coding problem(help!!!)
问一个SAS format的问题,看似简单问一个sas问题
sas question请教 macro variable 和 PROC SQL的问题
Question: Importing csv file into SAS 9----太多变量遇到一个SAS问题
SAS Macro 问题请教 。。。问一个如何sas里做这个问题
急问一个SAS 的常见问题How to delete a list of variable at one time in SAS?
相关话题的讨论汇总
话题: sas话题: proc话题: import话题: name话题: column
进入Statistics版参与讨论
1 (共1页)
d*o
发帖数: 108
1
I have a file with the following format:
name age income height ....
john 23 39 89 ...
jack 23 44 25 ...
Possible to write a "general" code, so that the code can use the very first
line, to define the variable names? in other words, the data set should have
variables "name", "age", ...
t*******t
发帖数: 633
2
直接用proc import就好了

first
have

【在 d*o 的大作中提到】
: I have a file with the following format:
: name age income height ....
: john 23 39 89 ...
: jack 23 44 25 ...
: Possible to write a "general" code, so that the code can use the very first
: line, to define the variable names? in other words, the data set should have
: variables "name", "age", ...

d*o
发帖数: 108
3
thanks.
proc import is not very robust; e.g., if the column name starts with a
number, sas seems assumin the entire column is a numeric field; also i found
that if there are some missing fields, the resulting data is less reliable..

【在 t*******t 的大作中提到】
: 直接用proc import就好了
:
: first
: have

t*******t
发帖数: 633
4
You can specify more options in proc import.
For example, using guessingrow=200 then SAS will scan the first 200 rows to
make a decision on whether this variable is a numeric or character.
For missing values, using DSD option can help.
Just read more of proc import document, you can see it's a powerful proc.

found
reliable..

【在 d*o 的大作中提到】
: thanks.
: proc import is not very robust; e.g., if the column name starts with a
: number, sas seems assumin the entire column is a numeric field; also i found
: that if there are some missing fields, the resulting data is less reliable..

o*******w
发帖数: 2310
5
proc import sounds right to me
by the way, column name cannot start with a number in SAS

to

【在 t*******t 的大作中提到】
: You can specify more options in proc import.
: For example, using guessingrow=200 then SAS will scan the first 200 rows to
: make a decision on whether this variable is a numeric or character.
: For missing values, using DSD option can help.
: Just read more of proc import document, you can see it's a powerful proc.
:
: found
: reliable..

1 (共1页)
进入Statistics版参与讨论
相关主题
How to delete a list of variable at one time in SAS?sas question
请问我们平时在SAS里头那种data叫什么format的data呀?Question: Importing csv file into SAS 9----太多变量
[合集] SAS一问,急~!SAS Macro 问题请教 。。。
SAS question: count non-missing value for different variables急问一个SAS 的常见问题
Import excel file to sas (the first 8 or more observationsproc import problem
SAS format 的问题请教一个proc transpose的问题
SAS问题请教sas coding problem(help!!!)
问一个SAS format的问题,看似简单问一个sas问题
相关话题的讨论汇总
话题: sas话题: proc话题: import话题: name话题: column