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 (August 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: cc: John Gober <j.gober@WORLDNET.ATT.NET>
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 sort, and transpose back to original structure.

check our most excellent archives: http://www.listserv.uga.edu/archives/sas-l.html search for: transpose and sort subject contains: author's address: since: Jan 2000

http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0001E&L=sas-l&P=R3464&D=1&H=0&O =D&T=1

round two: bubble sort:

search for: array and sort subject contains: author's address: dorfman since: May 2000

http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0005D&L=sas-l&P=R24755&D=1&H=0& O=D&T=1

Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov


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