is there a way of emailing a small dataset via the ODS,
i did find a bit of script to do it but this caused a thousand and one errors and when i finally got it to email something, it was all text and no formatting. So i gave up on that, and resorted to sending it as an attachment:
Hi I have tried this and it doesnt display as html it is text.
i have checked my outlook to display as html.
If i copy what is emailed to me and open it in a html viewer it looks like the way i want it
this is very strange, any help will be much appreciated?
Also could this be to do with every time i run this script outlook comes up with the warning prompt, saying allow or deny?
So, just to be clear as mud, you are seeing SAS-generated HTML code in your EMAIL. So that means your EMAIL client is not detecting the EMAIL as being HTML-formatted. This condition only occurs for me when I forget to code the TEXT= parameter. So, please share (in a post to the list) the exact FILENAME and ODS HTML statement you are executing for feedback.
I use a similar coding technique as you have shared, except the ODS parameter parameter is coded to prevent HTML tag truncation.
So, again, the question: are you seeing HTML code in the EMAIL you receive or a text reporting listing? Also, has the code (or something similar) ever worked previously where you send SAS-generated HTML reports via EMAIL?
And, mention again, the sending and receiving operating system environments, EMAIL client? Also, your SAS version and service pack / HOTFIX maintenance levels are something to consider.
Also, consider an attempt without the ATTACH= parameter to determine any different SAS behavior with your EMAIL content.