我想将 procedure spname is
begin
EXECUTE IMMEDIATE 'ALTER TRIGGER Triggername DISABLE';
UPDATE tableName set a=b;
EXECUTE IMMEDIATE 'ALTER TRIGGER Triggername ENABLE';
end;
迭代器作为值传递-参见下面的示例
do
它仅将字符%macro print_to_log(val=);
%put &val;
%mend print_to_log;
data _null_;
do i = -15 to 0;
%print_to_log(val=i);
end;
run;
打印到日志中。
答案 0 :(得分:0)
如果您使用另一个宏而不是空ds,这对您有用吗?
%macro print_to_log(val);
%put &val;
%mend print_to_log;
%macro loop;
%do i = -15 %to 0;
%print_to_log(&i);
%end;
%mend loop;
%loop;