BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

Is it possible that data sets in work libarary be listed in order that they were created?

I look at work libarary nd I see the data sets there but the order they appear is alphabetic  and not by time they were created

 

 

2 REPLIES 2
Tom
Super User Tom
Super User

What do you mean by "look"?  Did you open some viewer? Which one?  What interface are you using to run SAS?  Display Manager? Enterprise Guide? SAS/Studio?

 

You can always make a report instead.

data z;
run;
data m;
run;
data a;
run;

proc sql;
select memname, modate format=datetime19.
  from dictionary.tables
  where libname='WORK' 
  order by modate 
;
quit;

Tom_0-1757883103390.png

 

andreas_lds
Jade | Level 19

SAS Studio, Enterprise Guide, Display Manager and even the sas-addon for VS Code display library contents always in alphabetical order. But if you should have access to your work-folder with Windows Explorer, too, so that you use it to display datasets in the required order.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 79 views
  • 0 likes
  • 3 in conversation