Date: Thu, 15 Aug 2002 13:52:53 -0400
Reply-To: "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Subject: Re: Need to sort an ARRAY
Content-Type: text/plain; charset="iso-8859-1"
> From: John Gober [mailto:j.gober@WORLDNET.ATT.NET]
> This is probably a simple task but it illudes me now. I have an array
> containing 12 elements representing variables temp1 through temp 12.
> Is there some simple and easy method that anyone knows to sort the
> array elements in descending value (removing blanks and duplicates)?
depending on your data set size
and what you're doing with the finished product
you could depend on SAS to do the work
with a transpose to make the array vertical
and transpose back to original structure.
check our most excellent archives:
search for: transpose and sort
since: Jan 2000
search for: array and sort
author's address: dorfman
since: May 2000
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov