全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
6674 1
2015-12-12
%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 显示为文本。可能缺失分号或其他分隔符。




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-12-12 22:09:53
Syntax
%SUBSTR (argument, position<, length> )
上面是%SUBSTR的语法,所以%let month=%substr(jan,feb,mar,5,3);错了,
另外你的宏%macro temp;后面少了括号

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群