Macros for SAS Application Developers 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.


%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]( ).

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

Definition in file