Can you please guide to send an e-mail with the attachment? The attachment should be the XLS from the space separated MV'S(mainframe) file.
I tried with option EXT="XLS" in the ATTACH. But the attached spread sheet came with full record in the cell.
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.
This syntax worked for me and Excel opened the when I clicked on the CSV attachment -- the information displayed in the correct columns:
ods csv body='c:\temp\table2.csv';
proc tabulate data=sashelp.shoes;
table region all, sales*(min mean max);
ods _all_ close;
filename doemail email firstname.lastname@example.org'
subject='Testing attach of csv'
put 'this is a test with csv attachment.';
you have to help excel understand your data.
Excel does not expect "space separated data" so thinks a line without a delimiter will belong in one cell.
By default excel assumes CSV uses a comma separator.
However, you need not consider this issue.
Use the ODS CSV destination to fill your data file.
Apart from using more cpu time than I think it needs, it does provide an effective way to create data for Excel.
If you might like cell formatting, try the ODS destination tagsets.excelxp.