1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-06 09:00:06 +00:00

feat: new mf_existfunction macro

This commit is contained in:
Allan Bowe
2021-08-18 23:36:12 +03:00
parent bc410a9135
commit 005af0ecf8
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/**
@file
@brief Testing mf_existfunction macro
<h4> SAS Macros </h4>
@li mf_existfunction.sas
@li mp_assert.sas
**/
%mp_assert(
iftrue=(%mf_existfunction(CAT)=1),
desc=Checking if CAT function exists,
outds=work.test_results
)
%mp_assert(
iftrue=(%mf_existfunction(DOG)=0),
desc=Checking DOG function does not exist,
outds=work.test_results
)