LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?
Comments: To: Talbot Michael Katz <topkatz@MSN.COM>
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"


Back to: Top of message | Previous page | Main SAS-L page