BookmarkSubscribeRSS Feed
Aman4SAS
Obsidian | Level 7

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

5 REPLIES 5
Cynthia_sas
Diamond | Level 26

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

Aman4SAS
Obsidian | Level 7

thanks a lot.

manojinpec
Obsidian | Level 7

Do you want soem real example?

Aman4SAS
Obsidian | Level 7

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

thanks

Cynthia_sas
Diamond | Level 26

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;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1940 views
  • 6 likes
  • 3 in conversation