BookmarkSubscribeRSS Feed
cjohnson
Obsidian | Level 7
I am working in Enterprise 4.1, SAS 9.1. I am rewriting a program to make it easier for coworkers to use. This program has about 30 data steps, some producing permanent datasets and some producing html output. Some are needed by the user, and some are only intermediate work. What I would like to do is have the user run the program, and then display certain output and datasets. Normally when you run a section of code, all outputs are displayed, and only the last dataset created is displayed. Is there a way to control this in the code?

Thanks,
Chris
Christopher Johnson
www.codeitmagazine.com
2 REPLIES 2
Patrick
Opal | Level 21
There is an option in SAS EG that it doesn't open DS and output automatically.

You also could programatically delete all the SAS DS which are only intermediary work DS.
RichardH_sas
SAS Employee
Agreed with Patrick: I think (especially in EG 4.1) your only choices may be to turn off the automatic display of data sets and/or use PROC DATASETS or PROC SQL to delete some of the intermediary tables so they don't show up in the process flow. For example:

proc sql;
drop table work.test1, sasuser.query1;
quit;

In EG 4.2, there's a pop-up box to switch between output data sets from code or a task. That helps a little, but still isn't quite what you're asking for.

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

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