- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 355 个
- 通用积分
- 196.5189
- 学术水平
- 57 点
- 热心指数
- 55 点
- 信用等级
- 38 点
- 经验
- 4392 点
- 帖子
- 134
- 精华
- 0
- 在线时间
- 264 小时
- 注册时间
- 2012-7-9
- 最后登录
- 2025-5-8
|
- This is better?
- %macro genfact(index=);
- %let i=1;
- %do %while(%scan(&index,&i,%str(())) ne );
- %let Nindex=%scan(&index,&i,%str(()));
- %put &nindex;
- %let nindex=%quote(&nindex);
- %let j=1;
- %do %while(%scan(&nindex,&j,%str(,)) ne);
- %let Nindex1=%scan(&nindex,&j,%str(,));
- %put &Nindex1;
- %let j=%eval(&j+1);
- %end;
- %let i=%eval(&i+1);
- %end;
- %mend;
- %genfact(index=%quote((fratio54,fratio5b4,analystz10b,mrsquare3b),
- (analystz10b,mrsquare3b,cashvot14,cashvot1b4,gsvot54,turnr3 cashvot14,cashvot1b4,gsvot54,turnr3 ,profit54),
- (cashvot1b4,gsvot54,turnr3 cashvot14,cashvot1b4,gsvot54,turnr3 ,profit54)));
复制代码
|
|