解決しました!https://communities.sas.com/t5/Base-SAS-Programming/Irritating-warning-in-Proc-FCMP/td-p/16216 へ
の参照キーは cmplib オプションです。
libname mylib 'H:\saslib\testlib';
proc fcmp outlib=mylib.funcs.rule;
function calc(var);
newvar=log(var);
return(newvar);
endsub;
function gen_str(var1 $, var2 $, var3 $) $100;
length newvar $100;
newvar=catx('#', var1, var2, var3);
return(newvar);
endsub;
Run;
/*list the source code*/
Options cmplib=_null_;
proc fcmp library=mylib.funcs;
listfunc calc gen_str;
run;
Quit;
/*using func*/
options cmplib=mylib.funcs;
data _null_;
numret=calc(20);
charret=gen_str('what', 'is', 'your');
put numret= charret=;
run;
/*delete the func*/
options cmplib=mylib.funcs;
proc fcmp outlib=mylib.funcs.rule;
deletefunc calc;
run;
quit;