Hi,
Have you tried CSV as the EXT value??? Most windows-based systems have CSV registered to Excel. When I email myself a CSV file, Excel launches when I click on the file, even if it is named CSV. I was not able to test this code equivalent on the mainframe. However, if you contact Tech Support, they can help you figure out how to make similar syntax work on the mainframe.
cynthia
This syntax worked for me and Excel opened the when I clicked on the CSV attachment -- the information displayed in the correct columns:
[pre]
ods csv body='c:\temp\table2.csv';
proc tabulate data=sashelp.shoes;
var sales;
class region;
table region all, sales*(min mean max);
run;
ods _all_ close;
filename doemail email to='person1@isp.net'
from='Cynthia@sas.com'
cc='cynthia@sas.com'
subject='Testing attach of csv'
attach='c:\temp\table2.csv';
data _null_;
file doemail;
put 'this is a test with csv attachment.';
run;
[/pre]