
|
楼主: anzhiliang
|
3870
7
如何写程序判断一个数据集里是否有一个固定的变量? |
|
博士生 38%
-
|
回帖推荐*** Provide the variable you want to check;
%let vartest=weight;
*** Open dataset;
%let dsid=%sysfunc(open(sashelp.class));
*** Get the position of the test variable;
%let varnum=%sysfunc(varnum(&dsid,&vartest));
*** If the position is not 0, then the variable exists in the dataset;
%put The number of the position of variable &vartest: &varnum;
*** Close the dataset;
%let rc=%sysf ...
本帖被以下文库推荐
| ||
|
MSN:anzhiliang1@hotmail.com
努力做个好人。 |
|||
|
|
| ||
|
和谐拯救危机
|
||
|
MSN:anzhiliang1@hotmail.com
努力做个好人。 |
|
| ||
|
和谐拯救危机
|
||
| ||
|
Let them be hard, but never unjust
|
||
|
MSN:anzhiliang1@hotmail.com
努力做个好人。 |
|
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


