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 2004, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 29 Aug 2004 21:03:18 -0700
Reply-To:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Organization:   http://groups.google.com
Subject:   Re: Sort all dataset in a library
Content-Type:   text/plain; charset="iso-8859-1"

Deng, Yue wrote: > Hi everyone, > If I want to sort ALL datasets in the library "A" what shall I do?

It depends. Do all the tables have the same columns ? Which column(s) do you want to sort the tables by ? - per column name ? e.g. BY a b c; - per column position ? e.g. BY {1st column} {3rd column} {2nd column}

Do you really need to sort each table ? Would a sorted view work instead ?

--- Here is a push start --- data _null_; set sashelp.vtable; where libname = 'A' and memtype = 'DATA' ; call execute ('PROC SORT DATA=A.'||memname||';BY patientId;RUN;'); run;

--- Richard A. DeVenezia http://www.devenezia.com


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