When I try to run this code to send an email manually, it works fine, but when I use the SAS scheduler to send the email automatically, it doesn't work. How can I proceed, please?
filename mymail email FROM= "[email protected]"
TO=(
"[email protected]"
)
Cc=("[email protected]" "[email protected]"
)
TYPE="text/html"
CONTENT_TYPE="text/html";
DATA _null_;
FILE mymail
SUBJECT="Contrôle Mensuel QDD: Bases SITMVT et SINRC1"
;
PUT 'Hello,'
/ '<br><br><br>'
;
PUT '<br>';
if &NBB = 0 AND &NombreStockSITMVTB = &NombreBaseSITMVTB then PUT
"-Le contrôle QDD est OK pour SIT."
;
else PUT
"-Le contrôle est KO pour SIT. "
"On vous invite à vérifier les résultats en exécutant ce code (Les résultats sont stockés dans la table de sortie SITMVTB."
;
RUN;
SYSTEM@SRVPSASCOMP11 - ERROR Undetermined I/O failure.
SYSTEM@SRVPSASCOMP11 - NOTE The SAS System stopped processing this step because of errors.
SYSTEM@SRVPSASCOMP11 - NOTE DATA statement a utilisé (Durée totale du traitement)
SYSTEM@SRVPSASCOMP11 - real time 0.09 seconds
SYSTEM@SRVPSASCOMP11 - cpu time 0.00 seconds
SYSTEM@SRVPSASCOMP11 -
SYSTEM@SRVPSASCOMP11 -
SYSTEM@SRVPSASCOMP11 - ERROR Errors printed on page 56.
SYSTEM@SRVPSASCOMP11 -
SYSTEM@SRVPSASCOMP11 - NOTE SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
SYSTEM@SRVPSASCOMP11 - NOTE The SAS System used
SYSTEM@SRVPSASCOMP11 - real time 558.85
SYSTEM@SRVPSASCOMP11 - cpu time 234.10