楼主: sd215
1278 3

[原创博文] SAS ADV的一道题 [推广有奖]

  • 0关注
  • 0粉丝

高中生

20%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
215 点
帖子
22
精华
0
在线时间
10 小时
注册时间
2011-9-13
最后登录
2016-10-30

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

%macrotest(var);

%let jobs= BLACKSMITH WORDSMITH SWORDSMITH;

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

%put type=&type;

%mend;

%test(SMITH)

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

二维码

扫码加我 拉你入群

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

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

关键词:Smith words Macro Index Black

沙发
maidenhan 发表于 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

使用道具

藤椅
sunset1986 发表于 2012-9-5 11:20:34 |只看作者 |坛友微信交流群
正解
An honest tale speeds best being plainly told.
Cheers!

使用道具

板凳
Imasasor 发表于 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.
...
高手
欢迎加入亚太地区第一R&Python数据挖掘群: 251548215;

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-6-16 07:11