Hello
I am using the following code to send an email with body text.
My question- What is the way to change the code in order to have ability to write in Hebrew language?
%macro send_Email_From_SAS();
filename outbox email
to=("[email protected]","[email protected]")
subject="Weather info"
from='[email protected]';
DATA _null_;
file outbox;
Put "Hi,"//
"Weather info was updated for date: &Agreement_Summary_Date."//
"Running date-&Today."//
"Raw data table1-r_r.Accum_Weather1"//
"Raw data table2-r_r.Accum_Weather2"//
"Kind Regards,"/
"Joe";
run;
%mend send_Email_From_SAS;
%send_Email_From_SAS;
Okay I found solution. Need to add encoding='utf-8'
%macro send_Email_From_SAS();
filename outbox email encoding='utf-8'
to=("[email protected]","[email protected]")
subject="עדכון נתוני מזג אוויר"
from='[email protected]';
DATA _null_;
file outbox;
Put "שלום רב,"//
"נץוני מזג אוויר עודכנו עד תאריך: &Agreement_Summary_Date."//
"תאריך הרצת השליפה-&Today."//
"תוצר1-r_r.Accum_Weather1"//
"תוצר2-r_r.Accum_Weather2"//
"בברכה,"/
"יהושוע";
run;
%mend send_Email_From_SAS;
%send_Email_From_SAS;
Okay I found solution. Need to add encoding='utf-8'
%macro send_Email_From_SAS();
filename outbox email encoding='utf-8'
to=("[email protected]","[email protected]")
subject="עדכון נתוני מזג אוויר"
from='[email protected]';
DATA _null_;
file outbox;
Put "שלום רב,"//
"נץוני מזג אוויר עודכנו עד תאריך: &Agreement_Summary_Date."//
"תאריך הרצת השליפה-&Today."//
"תוצר1-r_r.Accum_Weather1"//
"תוצר2-r_r.Accum_Weather2"//
"בברכה,"/
"יהושוע";
run;
%mend send_Email_From_SAS;
%send_Email_From_SAS;
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.
Ready to level-up your skills? Choose your own adventure.