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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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