|
Look up the 'NOTSORTED' option for PROC FORMAT, and ORDER=DATA option
for the class statement.
-Joe
On Tue, Nov 29, 2011 at 10:03 AM, bbser 2009 <bbser2009@gmail.com> wrote:
> Greetings!
>
> After running the code below, I got the output where the order of values of
> num is like: Even, Odd, One, Two, from top to bottom.
> I was wondering if there is a way to change this order to: One, Two, Odd,
> Even, from top to bottom? Thanks a lot.
>
> Regards, Max
> (Maaxx)
>
> proc format;
> value tempfmt (multilabel)
> 1='One'
> 2='Two'
> 1='Odd'
> 2='Even';
> run;
>
> data new;
> input num value;
> cards;
> 1 100
> 2 200
> 1 100
> ;
>
> proc tabulate data=new;
> attrib num format=tempfmt.;
> class num/mlf;
> var value;
> table num,value;
> run;
>
|