如果您在datastep中有多个'vanilla'子句,您将在日志中看到以下内容:
注意:WHERE子句已被替换。
要避免此行为,您可以使用 where also :
where also
data FT_Post; set WORK.FT_May; Where checkin_time between '12:00't and '20:00't; Where also REASON_FOR_VISIT Not Like '%psyc%'; Where also REASON_FOR_VISIT Not Like '%psy eval%'; Where also REASON_FOR_VISIT Not Like '%psych%'; Where also REASON_FOR_VISIT Not Like '%suicid%'; Where also REASON_FOR_VISIT Not Like '%homicid%'; run;
你现在会看到:
注意:WHERE子句已被扩充。