BookmarkSubscribeRSS Feed
hk186002
Calcite | Level 5

Hi All,

 

I have a wierd issue now.

 

I was able to send the maxdate value from the dataset to lotus notes which is configured in our environment and I am getting the value from the below code to the mail body however it doesnt send the mail automatically. Mail just opens and stays I had to manually press the send button. Is there anything else I have to add in the code? I have attached the screenshot whcih is the output of the below code. How can I make sure it sends the mail automatically

 

I was able to 

 

DATA _null_;
SET WORK.Maxlendnetdate;
CALL SYMPUT('maxdate',put(MAX_of_DATE_OF_EFFECT, datetime8.));

run;

FILENAME outbox EMAIL ("xxxxx.xxx.");
DATA _NULL_;
FILE outbox
TO=("hari.kurupati@cba.com")
from = "xxx.com"

SUBJECT=("Lendnet &maxdate ");
PUT "On &maxdate ";

RUN;

 

 


output.jpg
4 REPLIES 4
sandykota
Obsidian | Level 7

Hi,

 

Hope this link helps:

 

http://support.sas.com/kb/17/744.html

 

 

hk186002
Calcite | Level 5

Hi Sandykota,

 

thanks for the reply but seems that I do not have access to change th file however its asking me to save with diffrent name.


Regards,

Hari

BrunoMueller
SAS Super FREQ

Depending on the SAS version you use, these options can also be set using the OPTIONS statements.

 

options
  emailhost="emailhost.a.b.c"
  emailsys=smtp
;

Give it a try.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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