Regardless of the code arrangement, the last dataset created in your SAS code always gets dumped to a display screen. Is there a way to turn this off so that you can run your SAS code and *not* have the last dataset dumped?
(i.e. having to add a dummy datastep building a one row one column dataset at the end of every application seems very clunky) just to avoid large numbers of rows being dumped to an interactive display.
From the Tools menu, choose the Options... menu item. Uncheck the "Open Generated data/results automatically" check box from the Results->Results General pane. It's an all or nothing arrangement to open data generated by a step in EG, but at least you have control.