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 (October 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 10 Oct 2001 11:24:07 -0600
Reply-To:     Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jack Hamilton <JackHamilton@FIRSTHEALTH.COM>
Subject:      Re: Merge w/o sort first
Comments: To: Ben_Kentzer@AMP.COM.AU
Content-Type: text/plain; charset=us-ascii

"Ben Kentzer" <Ben_Kentzer@AMP.COM.AU> wrote:

>One interesting point - if you have a sort followed by a data step, the data >step will remove the "sorted by". This can be re-introduced by using a by >statement on the data step.

Not exactly. A BY statement will verify that the data set is sorted. You would use the SORTEDBY= data set option to tell SAS that a data set is already sorted.

data x (sortedby=a b c);

set y; by a b c;

run;

-- JackHamilton@FirstHealth.com Development Manager, Technical Group METRICS Department, First Health West Sacramento, California USA


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