Date: Fri, 24 Jun 2005 13:18:24 -0700
Reply-To: "Terjeson, Mark (IM&R)" <Mterjeson@RUSSELL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark (IM&R)" <Mterjeson@RUSSELL.COM>
Subject: Re: MAX of _TEMPORARY_ array?
Content-Type: text/plain; charset="US-ASCII"
Hi,
Is HBOUND() what you're looking for?
%let dima=37;
data _null_;
array a{*} a1 - a&dima.;
maxa = HBOUND(a);
put maxa=;
run;
Hope this is helpful.
Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investment Group
Russell
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Talbot Michael Katz
Sent: Friday, June 24, 2005 12:58 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: MAX of _TEMPORARY_ array?
Hi.
Is there a way to use the max() function with a _temporary_ array?
If I specify an array as
array a{*} a1 - a&dima.;
then I can do either
maxa = max(of a{*});
or
maxa = max(of a1 - a&dima.);
But I can't seem to find the right syntax to work with a _temporary_
array. Can it be done?
Thanks!
-- TMK --
"The Macro Klutz"