%let month=%substr(jan,feb,mar,5,3);
%put without quoting functions month=&month;
%let month=%substr(%str(jan,feb,mar),5,3));
%put with quoting functions month=&month;
ERROR: 检测到开型代码语句的递归。
放在%macro temp;
%mend temp;中
%macro temp;
%let month=%substr(jan,feb,mar,5,3);
%put without quoting functions month=&month;
%let month=%substr(%str(jan,feb,mar),5,3));
%put with quoting functions month=&month;
%mend temp;
%temp
日志中显示
ERROR: 检测到开型代码语句的递归。
ERROR: 宏关键字 MEND 显示为文本。可能缺失分号或其他分隔符。