Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mf_existfunction.sas File Reference

Checks if a function exists. More...

Go to the source code of this file.

Detailed Description

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 ).

Parameters
[in]name(positional) - function name
Author
Allan Bowe

Definition in file mf_existfunction.sas.