Hello,
Is it possible to sort datasets in SAS Data Studio on SAS Viya?
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 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.