Thanks @s_lassen I'll try this. By the way, the email is sent by the code: filename outbox email attach=("/sasdata/user_Data/reportlog.txt") importance='high'
to='chrodriguez@com.do'
type='text/html'
subject= "Log ETL"
from='planificacion@com.do';
DATA _NULL_;
FILE outbox;
PUT "<body>";
PUT "<p>Hello, </p>";
PUT "<p>The program executed with erros, see attached file.</p>";
PUT "<p>Regards.</p>";
PUT "</body>";
run;
run; The file attached contains only the errors and warning messages from the log.
... View more