From: Clark An on
Thank you
I know we can do it with %do loop
I wanna sovle it just in data step.
From: Tom Abernathy on
You can create a multi-dimensional array in SAS. Look at the arrary
statement in your manual for the syntax.

I really cannot see how the proposed structure would be useful for
anything. At this point it might help if you explained the actual
problem rather than the technical problem you are having with the
approach you have adopted.



On Feb 21, 10:17 am, kuh...(a)126.COM (Clark An) wrote:
> Thank you.
>
> Then how abt
>
> do i=1 to 10;
>    do j=1 to 15;
>       do k=1 to 100;
>          do l=1 to 20;
>             do m=1 to 17;
>                do n=1 to 23;
>                   X&i&j&k&l&m&n=&i+&j+&k+&l+&m+&n;
>                   output;
>                end;
>             end;
>          end;
>       end;
>    end;
> end;

From: montura on
You are attempting to use Base/SAS for programming that is really the
domain of SCL.

This is simple transaction-style processing where the data can be
loaded into a LIST in ENVLIST, which is a session resource.
Data can be accessed across data steps and procedures until SAS
terminates.

You can stick with Base/SAS but the macro generation and updates will
cause non-stop fumbles, especially in a few months when the specs
change or you discover tghat you miss a condition.

Learn SCL.



From: Clark An on
Thank you.
Then how can I determine the X&i&j&k&l&m&n by i j k l m n if using
multi-dimensional array?
A kinda complicated....
From: Clark An on
Thank you.
How's the performance of sas/r pls?