Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
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.

Parameters
[in]namefunction name
Author
Allan Bowe

Definition in file mf_existfunction.sas.