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;
|