全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1494 3
2012-02-07

%macrotest(var);

%let jobs= BLACKSMITH WORDSMITH SWORDSMITH;

%let type= %index(&jobs, &var);

%put type=&type;

%mend;

%test(SMITH)

求大侠讲解下为什么是 6  宏值 type

二维码

扫码加我 拉你入群

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

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

全部回复
2012-2-7 07:46:35
Function INDEX() could tell u the location of the first target word it finds in the source string.
Now, your source string is "BLACKSMITH WORDSMITH SWORDSMITH", and your target word is "SMITH". So, we'll see
                              
123456789012345678901234567890123
BLACKSMITH WORDSMITH SWORDSMITH
          SMITH

二维码

扫码加我 拉你入群

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

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

2012-9-5 11:20:34
正解
二维码

扫码加我 拉你入群

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

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

2012-9-5 11:53:04
maidenhan 发表于 2012-2-7 07:46
Function INDEX() could tell u the location of the first target word it finds in the source string.
...
高手
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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