BookmarkSubscribeRSS Feed
jashu14
Calcite | Level 5

Hi All,

 

I am currently working on a project for that I have to transfer the data from one folder to another in this process I have to achieve the golas mentioned below.

 

1. Transfering files (Goal Reached)

2. Zip all the data and transfer (Not reached)

3. Get email notificiation for the above transfer via email (outlook) (Not reached)

 

I am using SAS Enterprise Guide 9.2. Please let me know how can we achieve. And I tried using the below code.

 

filename outlook email;

data _null_;

file mailbox to="XXX.XXX@XXX.com"

subject='test mail message';

put "hello";

put "this is a message from the data step";

run;

 

Reards,

Jaswanth Neelisetty

3 REPLIES 3
RahulG
Barite | Level 11

 This is specific to step 3, sending email.

filename outbox email "xyz<XXX.XXX@XXX.com>";
data _null_;
file outbox
subject='test mail message';
put "hello";
put "this is a message from the data step";
run;

 

Try this out. Example of first line can be 

filename outbox email "jashu14<jashu14@hotmail.com>";

 

You can also supply From, who is sending the email.

 

filename outbox email "xyz<XXX.XXX@XXX.com>";
data _null_;
file outbox
from = "abcd<abcd.xxx@xxx.com>" subject='test mail message'; put "hello"; put "this is a message from the data step"; run;

 

ChrisHemedinger
Community Manager

E-mail from SAS works best using SMTP.  On Windows, that's not the default.

 

Specify the EMAILSYS option and the EMAILHOST option with the SMTP server in your organization.  Example:

 

options emailhost='mymailhost.company.com' emailsys=smtp;

If using an external e-mail provider like GMail, you need additional options.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 3 replies
  • 1218 views
  • 0 likes
  • 4 in conversation