为什么这个代码仍然发送电子邮件时,无法得到执行的情况链接到电子邮件发送 发送电子邮件? 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的电子邮件数量是多少?只有一个?还是不止一个? –