爲什麼這個代碼仍然發送電子郵件時,無法得到執行的情況鏈接到電子郵件發送 發送電子郵件? SASLOG證明條件價值是零放x =。從SAS程序
98 filename outbox email '[email protected]';
99
100 data _null_;
/* Set variable */
101 x=0;
102 put x=;
/* condition cannot be true */
103 if x=1 then do;
104 link send_email; /* should only be hit if condition is true */
105 end;
106 return;
107
108 send_email: /* seems to get executed no matter what */
109 file outbox
110 to=("[email protected]")
111 subject="Email test";
112 put "Email test from SAS program";
113 put " ";
114 return;
115 run;
NOTE: The file OUTBOX is:
E-Mail Access Device
x=0
Message sent
To: ("[email protected]")
Cc:
Bcc:
Subject: Email test
Attachments:
NOTE: 0 records were written to the file OUTBOX.
NOTE: DATA statement used (Total process time):
real time 7.22 seconds
cpu time 0.35 seconds
如果要發送電子郵件,您希望發送此datastep的電子郵件數量是多少?只有一個?還是不止一個? –