BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ronein
Meteorite | Level 14

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=("joe.Dave@gmail.com","Ben1111@gmail.com")
subject="Weather info"
from='chris1234@gmail.com';
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;
1 ACCEPTED SOLUTION

Accepted Solutions
Ronein
Meteorite | Level 14

Okay I found solution. Need to add  encoding='utf-8'

%macro send_Email_From_SAS();
filename outbox email encoding='utf-8' 
to=("joe.Dave@gmail.com","Ben1111@gmail.com")
subject="עדכון נתוני מזג אוויר"
from='chris1234@gmail.com';
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;

View solution in original post

1 REPLY 1
Ronein
Meteorite | Level 14

Okay I found solution. Need to add  encoding='utf-8'

%macro send_Email_From_SAS();
filename outbox email encoding='utf-8' 
to=("joe.Dave@gmail.com","Ben1111@gmail.com")
subject="עדכון נתוני מזג אוויר"
from='chris1234@gmail.com';
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;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 230 views
  • 0 likes
  • 1 in conversation