BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Suzy_Cat
Pyrite | Level 9

Hi there

 

I wondered if anyone knows how to sort and veiw all outputs datasets in SAS EG? If the outputs are sorted in alphabetic order, it will be much easier to find the data output to review result.

 

Any suggestions?

 

Thanks

 

Capture.JPG

 

Sue

1 ACCEPTED SOLUTION

Accepted Solutions
TomKari
Onyx | Level 15

Two quick comments:

 

In my experience, they are sorted by the order in which they're created. BUT, if you run multiple times, and change the code to add or not create datasets, it will generally sort of keep the datasets that were created on the last run ahead of the datasets that are new to this run. One solution is to delete the datasets from your workspace before running code...then you'll get a nice set in the correct sequence.

 

Once I've tested code, it's rare that I want to see all of the datasets that I've created. So as a last step in the code I delete all of the datasets that I don't need...then the list contains only the remaining datasets.

 

Tom

View solution in original post

4 REPLIES 4
Patrick
Opal | Level 21

You could use the Filter and Sort task to order your data in the way you like it.

Capture.JPG

 

The task is also available directly from the opened data grid.

Capture.JPG

Suzy_Cat
Pyrite | Level 9

Thanks Patrick, but that is not what I was asking.

 

in the Options setting, Maximum number of output data sets is set to 50, that means there will be loads of datasets can be viewed from the drop down list. My question is how to set those files sorted by their name other than random order (I guess they were listed by the time they were created or last updated?). If they are sorted by name, it is easier to find the one when needed.

 

Thanks again for looking into the solutions.

 

Capture.JPG

TomKari
Onyx | Level 15

Two quick comments:

 

In my experience, they are sorted by the order in which they're created. BUT, if you run multiple times, and change the code to add or not create datasets, it will generally sort of keep the datasets that were created on the last run ahead of the datasets that are new to this run. One solution is to delete the datasets from your workspace before running code...then you'll get a nice set in the correct sequence.

 

Once I've tested code, it's rare that I want to see all of the datasets that I've created. So as a last step in the code I delete all of the datasets that I don't need...then the list contains only the remaining datasets.

 

Tom

Suzy_Cat
Pyrite | Level 9
Thought so. Yeah that was what my plan - to delete all previously created redundent datasets. Thanks a lot Tom!

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 4 replies
  • 2276 views
  • 1 like
  • 3 in conversation