全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3781 1
2014-12-15
各位大神求助:
我的目的是为了以传进来的变量的名字定义一个路径,吧回归的结果输出到不同名字的doc里面去,但是这段程序一直报错。




%macro sep(contr);
%let root=%sysfunc(cat(d:\control\ , &contr , .doc));
%let roott=%str(%‘&root%’);
%put &roott;
%put &root;


options nodate nonumber;
ods rtf file= &roott
ods graphics off;
proc panel data=small1;
id stkcd0 ts;
model std = dummy bm size turnover spread mean mean_lag  roe lev ins_1/ rantwo;

run;
proc panel data=big1;
id stkcd0 ts;
model std = dummy bm size turnover spread mean mean_lag  roe lev ins_1/ rantwo;
run;
ods rtf close;
%mend;
我的目的是为了以传进来的变量的名字定义一个路径,吧回归的结果输出到不同名字的doc里面去,但是这段程序一直报错。
UG8FQ4~F8$O21N]7F65JX%F.jpg
二维码

扫码加我 拉你入群

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

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

全部回复
2014-12-16 12:37:03
复制代码
the code should be fine like that. my suggestion is to use file ="d:\control\&contr..doc". the reason is that good directory name should follow the naming rule, which is align with macro quoting.
JingJu
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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