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
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);
by a b c;
Development Manager, Technical Group
METRICS Department, First Health
West Sacramento, California USA