Date: Wed, 26 Jun 2002 09:26:03 -0400
Reply-To: "Fehd, Ronald J." <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J." <rjf2@CDC.GOV>
Subject: Re: variable array dimension declaration
> 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: firstname.lastname@example.org
If you always try to be logical,
you probably won't ever have much sorrow,
or much fun.
-- Ashleigh Brilliant pot-shot #4438