BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

 

Spoiler
Hello

I am writing a long sas code that create a permanent data set in a library called r_r.
Then I want to send an email from sas about it.

I get one warning message in Log:
6924         /* 1) Reset */
6925       ods _all_ close;
6926       ods listing close;
194                                                        The SAS System                          13:20 Thursday, November 13, 2025

6927       ods results off;
6928       filename m clear;
WARNING: No logical assign for filename M.
Here is the code I run to send the email.

/****Send via Email**********/
/****Send via Email**********/
/****Send via Email**********/
proc sql  noprint;
select put(max(Haamada_date),ddmmyy10.) as max_Haamada_date  into : max_Haamada_date
from r_r.XXXPanel_xxxt_CS
;
quit;
 

/*%let TO_Email=("Ron.Einstein@BankLeumi.co.il");*/


  /* 1) Reset */
ods _all_ close; 
ods listing close; 
ods results off; 
filename m clear;

FILENAME m EMAIL 
/*TO=&TO_Email.*/
TO="xxx.xxx@xxx.co.il"
FROM="xxx.xxx@xxx.co.il"
SUBJECT="xxxx-CS" 
CONTENT_TYPE="text/html" 
encoding="utf-8";
data _null_;
  file m lrecl=32767;
  put "פאנל  חדש עודכן עד  תאריך &max_Haamada_date. <br>";
  put "<br>";
  put "<br>";
  put "<br>";
  put "<br>";
  put "<br>";
  put "בברכה <br>";
  put "xxx xxx <br>";
run;



 

 

1 REPLY 1
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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