dolphinfish 发表于 2010-2-16 08:49 
我看到DIM function的例子都是单维array的,例如:
array new(4);
x=dim(new);
如果是 array new(1, 2, 3, 4)的话,我自己试到的是x=1. 不知道对于其它几维有没有处理的办法?
谢谢!
For multidimensional array, the dim function is like dim (arrayname, # of dimension).
Here is an example.
272 data _null_;
273 array x(1,2,3,4) _temporary_;
274 d1=dim(x,1);d2=dim(x,2);d3=dim(x,3);d4=dim(x,4);
275 put d1=/d2=/d3=/d4=/;
276 run;
d1=1
d2=2
d3=3
d4=4