> From: Jim Groeneveld [mailto:J.Groeneveld@ITGROUPS.COM]
> I want to define a new ARRAY (with not yet existing elements)
> of which the
> dimension is given as the value of a variable in the same
> data step. Is that
> possible and if so, how? E.g. something like (but the example
> is wrong, it
> would indicate the implicit index variable):
> ARRAY ArrName (dim);
> I know how to do it in two data steps using a macro variable.
What reason(s) do you have for not wanting to use that solution?
> The known
> dimension is the dimension of another, existing array, the
> result of the DIM function.
is this what you want:
array Known(*) <var list>;
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov
e-mail your SAS improvements to: email@example.com
If you always try to be logical,
you probably won't ever have much sorrow,
or much fun.
-- Ashleigh Brilliant pot-shot #4438