Hi, Angela what you have given is helpful but i dont think it would work in my scenario. Graham, Your idea of executing the process again will work but i wish to refrain from doing that. A sample code that i was aiming at is as below. in my Stored process i have closed the auto generated stored process macros. *HTML PART START; ods html body=_webout; proc print data=sashelp.class; run; ods html close; *HTML PART END; *CSV PART START; data _null_; /* Set HTTP headers */ rc = stpsrv_header('Content-type','application/vnd.ms-excel'); /* Prompt to SAVE or OPEN the attachment file named test.xls using Excel */ rc = stpsrv_header('Content-disposition','attachment; filename=test.csv'); run; data _null_; file _WEBOUT; do UNTIL (EOF); set sashelp.class end=eof; put @01 name $12. @17 sex $11. ; END; run; *CSV PART END;
... View more