我正在寻找一种方法来解决已定义的 SAS MACRO 的参数。我知道在哪里可以找到会话定义的宏(WORK.SASMACR/WORK.SASMAC1),但现在我想知道更进一步并确定它的参数。例如:
%macro test(val1, val2);
%put &val1 &val2;
%mend test;
/* With proc catalog I can find the defined macro... */
proc catalog cat=work.SASMAC1;
contents out=macros;
run;
/* How to create function/macro which takes the macro name and returns its arguments, eg:*/
%resolveMacroParams(test);
/* ...returns: */
val1 val2
任何帮助将不胜感激!
亲切的问候,赫尔曼