Hi: The 'view in Excel' choice issues a new ODS HTML step to create the file for viewing in Excel, which has the side effect of closing your automatic file. So you can get back to what you want by issuing just a bit of code after the view in Excel: ods listing close; ods html; ods preferences; And that should restart the collection of automatic HTML results again. Alternately, all the 'view in Excel' choice is doing is causing an ODS HTML step to run. You could take control of this choice by writing your own code in such a way that you do not "bump" into the automatic ODS HTML file: ods html(id=999) file='c:\temp\seedata.xls'; proc print data=sashelp.class; run; ods html(id=999) close; then you do not bump into the automatic file, it will still collect, but you have created an explicitly named file with a special ID= value (which will appear in the Results Window for you to click on) and when you close it, you won't close the automatic HTML creation. cynthia
... View more