THIS WORKS..... the attach statement (conetnttype) is the key PROC EXPORT DATA=sashelp.cars OUTFILE="/tmp/cars_test.xlsx" DBMS=XLSX REPLACE LABEL; SHEET=Sheet1; RUN; FILENAME Mailbox EMAIL 'nayakig@sce.com' Subject='Test Mail message' attach=("/tmp/cars_test.xlsx" content_type="application/xlsx"); DATA _NULL_; FILE Mailbox; PUT "Hello"; PUT "Attached is the report"; RUN;
... View more