Help using Base SAS procedures

proc sort

Reply
Super Contributor
Posts: 265

proc sort

where to find detail of proc sort..with real time scenario .

SAS Super FREQ
Posts: 8,743

Re: proc sort

Hi:

  I'm not sure what you mean by "real time scenario". However, here's the link to the PROC SORT documentation:

Base SAS(R) 9.3 Procedures Guide, Second Edition

  There are at least 4 examples of using PROC SORT in the above documentation site. Also, this Tech Support note is aimed at beginners:

24835 - Sorting Your Data with PROC SORT (for Beginners)

cynthia

Super Contributor
Posts: 265

Re: proc sort

thanks a lot.

Frequent Contributor
Posts: 138

Re: proc sort

Do you want soem real example?

Super Contributor
Posts: 265

Re: proc sort

yes ?? if its possible..i want to do practice on real scenario.

thanks

SAS Super FREQ
Posts: 8,743

Re: proc sort

If the examples weren't enough, here are some samples using SASHELP.CLASS. And, here are some papers -- I would suggest you Google for more:

http://support.sas.com/resources/papers/proceedings12/041-2012.pdf

http://www2.sas.com/proceedings/sugi30/037-30.pdf

 

cynthia

proc print data=sashelp.class;

title 'before';

run;

proc sort data=sashelp.class out=class_age;

by age name;

run;

  

proc print data=class_age;

title 'after 1st sort';

run;

proc sort data=sashelp.class out=age_desc;

by descending age name;

run;

proc print data=age_desc;

title 'after 2nd sort';

run;

Ask a Question
Discussion stats
  • 5 replies
  • 245 views
  • 6 likes
  • 3 in conversation