f********l 发帖数: 26 | 1 I use the following code to send myself an email after a batch submission.
%macro rptmail;
filename lkupmail email
to=("k*[email protected]")
bcc=("m*[email protected]")
subject="&emailsub. SAS complete";
data _null_;
file lkupmail;
put "Hi, &emailsub. is now completed!";
run;
%mend;
%rptmail;
the error code of this is as following:
ERROR: Unable to connect to SMTP server.
ERROR: connect call failed, system error is 'Connection refused'.
what should I do to correct this?
Thanks! | p********a 发帖数: 5352 | 2 Your filename statement is too long
%macro rptmail;
filename lkupmail email;
data _null_;
file lkupmail
to=("k*[email protected]")
bcc=("m*[email protected]")
subject="&emailsub. SAS complete";
put "Hi, &emailsub. is now completed!";
run;
%mend;
%rptmail; | f********l 发帖数: 26 | 3 Thanks, papertigra.
Actually both your and my script work from my PC SAS.
If I add
rsubmit;
%macro rptmail;
%mend;
%rptmail;
endrsubmit;
this script doesn't work.
I am just wondering if it's because the server's problem. |
|