由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 问题请教
相关主题
一个sas base问题不明白,请教一个很全SAS Interview Q. List [ZT] (转载)
a question about length assignmentin =option的一道题
[合集] SAS一问,急~!问个SAS BASE 中有关_ERROR_的问题
###### 问个SAS存贮,显示数据的问题问一个SAS DATA 处理的问题,谢谢!
SAS问题请教:Numeric Variable Length的设定请教一个data mining 的问题: sequence data
问道SAS ADV真题求高人指点一个SAS数据的转换问题
[合集] SAS data input helpSAS call symput question
One question about data step in sas一个SAS问题,求帮助。
相关话题的讨论汇总
话题: length话题: sas话题: abc话题: run话题: set
进入Statistics版参与讨论
1 (共1页)
i*********9
发帖数: 44
1
data abc;
length v1 $ v2 $ v3 $;
set abc;
run;
Note: variable length is uninitialized.
可是如果run上面的program两次,又一切正常。这是why?
O(∩_∩)O谢谢!!!
o*********h
发帖数: 6
2
Are you sure? I tried the program three times, SAS gave the same error
massage.

【在 i*********9 的大作中提到】
: data abc;
: length v1 $ v2 $ v3 $;
: set abc;
: run;
: Note: variable length is uninitialized.
: 可是如果run上面的program两次,又一切正常。这是why?
: O(∩_∩)O谢谢!!!

i*********9
发帖数: 44
3
It's really weird to me.
By the way, I'm using SAS 9.2. Don't know if this has anything to do with
the version of SAS.

【在 o*********h 的大作中提到】
: Are you sure? I tried the program three times, SAS gave the same error
: massage.

i*********9
发帖数: 44
4
Is there any way that we can define the length? Thank you very much!

【在 o*********h 的大作中提到】
: Are you sure? I tried the program three times, SAS gave the same error
: massage.

w******d
发帖数: 90
5
No, I run in sas 9.2. Nothing is done. But I don't have set abc, what is in
set abc.

【在 i*********9 的大作中提到】
: data abc;
: length v1 $ v2 $ v3 $;
: set abc;
: run;
: Note: variable length is uninitialized.
: 可是如果run上面的program两次,又一切正常。这是why?
: O(∩_∩)O谢谢!!!

s*******f
发帖数: 148
6
I guess it's because you didn't specified the length... so SAS treated the
keyword LENGTH as a variable name...
should be something like this:
DATA abc;
LENGTH v1 $8 v2 $8 v3 $50;
SET abc;
RUN;

【在 i*********9 的大作中提到】
: data abc;
: length v1 $ v2 $ v3 $;
: set abc;
: run;
: Note: variable length is uninitialized.
: 可是如果run上面的program两次,又一切正常。这是why?
: O(∩_∩)O谢谢!!!

i*********9
发帖数: 44
7
I see! Thank you very much!

【在 s*******f 的大作中提到】
: I guess it's because you didn't specified the length... so SAS treated the
: keyword LENGTH as a variable name...
: should be something like this:
: DATA abc;
: LENGTH v1 $8 v2 $8 v3 $50;
: SET abc;
: RUN;

1 (共1页)
进入Statistics版参与讨论
相关主题
一个SAS问题,求帮助。SAS问题请教:Numeric Variable Length的设定
包子问,SAS里data long to wide format问道SAS ADV真题
请教一个SAS code[合集] SAS data input help
请问我们平时在SAS里头那种data叫什么format的data呀?One question about data step in sas
一个sas base问题不明白,请教一个很全SAS Interview Q. List [ZT] (转载)
a question about length assignmentin =option的一道题
[合集] SAS一问,急~!问个SAS BASE 中有关_ERROR_的问题
###### 问个SAS存贮,显示数据的问题问一个SAS DATA 处理的问题,谢谢!
相关话题的讨论汇总
话题: length话题: sas话题: abc话题: run话题: set