| 所在主题: | |
| 文件名: Example_CallInfcn.txt | |
| 资料下载链接地址: https://bbs.pinggu.org/a-577581.html | |
| 附件大小: | |
|
Getting the IN operator to FUNCTION inside a SAS Macro
By: Perry Watts Recommended Reading: http://www.nesug.org/Proceedings/nesug09/cc/cc05.pdf http://www.lexjansen.com/cgi-bin/xsl_transform.php?x=tmac&s=nesug_t&c=nesug Related Link: http://www.pinggu.org/bbs/thread-690356-1-1.html By: bobguy /* --------------------------------------------------------------------------- Program : inFcn.sas Author : Perry Watts Date : 10Jun2009 14:39 Project : N09 Coder's Corner Title : CC05: Getting the IN operator to FUNCTION inside a SAS® Macro Path : Referenced in the SASAUTOS option in the CALLING program. Purpose : Use inFcn to replicate the IN operator inside a macro. Notes : Positional Keywords are being used to mimic operands assigned to the IN operator. ------------------------------------------------------------------------ */ %macro InFcn (excerpt, matchlist); %local TorF quotes; %let quotes=%str(%'%"); %let excerpt = %nrbquote(%sysfunc(compress(&excerpt,""es"))); %let matchlist = %sysfunc(translate(&matchList,' ', ',')); %let matchlist = %nrbquote(%sysfunc(compress(&matchList,""es"))); %let TorF = %SYSFUNC(indexW(%upcase(&matchlist), %upcase(&excerpt))); &TorF %mend InFcn; |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明