BookmarkSubscribeRSS Feed
gzr2mz39
Quartz | Level 8
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;
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1079 views
  • 0 likes
  • 2 in conversation