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?
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:
drop table work.test1, sasuser.query1;
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.