I would like to email an html file (ie clock_output.html).
When I run this code the html output shows up in my email instead of as an attachment.
Also, the email is not being sent. It is just being created.
How do I fix these two problems.
Thank you.
FILENAME outmail EMAIL
subject="Clock"
from="test@test.com"
;
DATA _null_;
FILE outmail
to="test1@test.com"
ATTACH= "C:\Documents and Settings\clock_output.html";
put "This is the clock";
RUN;
You are missing a FILENAME statement to clear the allocated.
Also, I executed your code, after adding the CLEAR, and the EMAIL had an attachment.
Scott Barry
SBBWorks, Inc.
Suggested Google advanced search argument, this topic / post:
send email attachment site:sas.com
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!