BookmarkSubscribeRSS Feed
Stefan-Stoyanov
Calcite | Level 5

Hello,

 

Is it possible to sort datasets in SAS Data Studio on SAS Viya?

2 REPLIES 2
RacheLGomez123
Fluorite | Level 6

Steps are given below-

If you list just one variable, then SAS will sort the observations in the dataset based on ascending values of that variable. 
You can sort in descending order by placing the keyword DESCENDING before the variable name that you want the dataset to be sorted on. 
You can sort by as many variables as are in the dataset.

 

Regards,

Rachel Gomez

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1172 views
  • 0 likes
  • 3 in conversation