-
- %macro s;
- data _null_;
- call symput("date",'01jan2010'd);
- call symput("date1",'02jan2010'd);
- run;
- %if %sysfunc(day(&date.))=%sysfunc(day(%sysfunc(intnx("month",&date1.,1,"beginning")))) %then %do;
- data a;
- n="成功";
- run;
- %end;
- %mend;
- %s;
以下是输出的日志:
WARNING: %SYSFUNC 或 %QSYSFUNC 宏函数引用的函数 INTNX 中的参数超出范围。
NOTE: 执行 %SYSFUNC 函数时无法执行数学运算。运算结果已设为缺失值。
ERROR: 执行 %SYSFUNC 或 %QSYSFUNC 宏函数引用的函数 DAY 时出错。
NOTE: 执行 %SYSFUNC 函数时无法执行数学运算。运算结果已设为缺失值。