|
沙发
楼主 |
发表于 2004-2-15 05:29:53
|
只看该作者
First, ARRAY statement is not an excutable statement, it will run only once for this data step. In the other words, if you move 'set donate' statement after all the array statement, it will work the same.
Second, I believe that if you set an initial value to an array, SAS will automatically RETAIN the value.
I recommand you test the following:
donate data set:
1 2 3 4
2 3 . 4
2 4 5 6
try to run your program twice, once with
array differ(4) diff1-diff4;
another with
array differ(4) diff1-diff4 (1 1 1 1);
You will see the difference and it will help you to understand how does it work. |
|