|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Checks if a function exists. More...
Go to the source code of this file.
Returns 1 if the function exists, else 0. Note that this function can be slow as it needs to open the sashelp.vfuncs table.
Usage:
%put %mf_existfunction(CAT); %put %mf_existfunction(DOG);
Full credit to Bart for the vfunc pointer and the tidy approach for pure macro data set filtering. Check out his SAS Packages framework! Where you can find the same [function]( https://github.com/yabwon/SAS_PACKAGES/blob/main/packages/baseplus.md#functionexists-macro ).
| [in] | name | function name |
Definition in file mf_existfunction.sas.