1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| dm log 'clear' editor;
/* Date du jour */
data _null_;
dat = date();
aa = put(year(dat), 4.);
mm = put(month(dat),z2.);
dd = put(day(dat),z2.);
datdeb = "'"||dd||'/'||mm||'/'||aa||"'";
call symput('datdeb',datdeb);
run;
%put &datdeb;
/* Envoi mail */
FILENAME reporting EMAIL from=("b.tot@tot.fr")
to=("" "")
cc=("b.tot@tot.fr")
subject= 'Test REPORTS ;
attach= ("B:\test.xls" "B:\CDS_Load_Error.txt");
data _null_;
file reporting;
put "Test avec fichier joint le" " " &datdeb
/ / "agegeabjt1345"
/ / " "
/ /"Best regards,"
/ /"Bastien"
/ / " "
/ / "This is an automated email sent by SAS on behalf of Bastien";
run; |
Partager