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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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