Date: Sun, 7 Dec 2003 13:42:29 -0800
Reply-To: Paul Choate <pchoate@DDS.CA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paul Choate <pchoate@DDS.CA.GOV>
Organization: http://groups.google.com
Subject: Re: A NEWBIE needs help PLEASE
Content-Type: text/plain; charset=ISO-8859-1
John -
Can you give an example with more data in it - i.e. both variables in
the sort order you want? It looks like what you want is a multiple
level sort, which can be achieved with a proc sort, or perhaps, proc
summary/means, or proc freq. There aren't enough details in your post
to give you a better answer.
Paul Choate
jfregus@IX.NETCOM.COM (John F. Regus) wrote in message news:<000001c3bc73$74d7b360$003dfea9@cw1>...
> Suppose you want to do a PROC that has a BY variable operand in it.
>
> Now suppose you want to put a file together that comes out that the
> first observation has a by variable of 1 and then it is followed by 10
> other observations and you want the output file to come out so the
> records (observations) are listed like this:
>
> BY VAR
> 10
> 11
> 11
> 12
> 13
> 10
> 12
> 13
> 13
> 15
> 10
>
> Do you see what I am doing? The output has the variable with a 10 in
> it first followed by the other variables sorted by their natural order
> which is ascending numbers.
>
> I am not sure as to what PROC is easiest to use and/or which one to use.
>
> How can I do this?
>
> Thanks,
> SAS Dummy
|