%SYSMACEXIST Function

Returns an indication of the existence of a macro definition in the WORK.SASMACR catalog. Otherwise, the returned value is 0.
Type: Macro function

Syntax

%SYSMACEXIST(macro-name)

Required Argument

macro-name
the name of a macro or a text expression that yields the name of a macro.

Details

The %SYSMACEXIST function returns the number 1 if a definition for the macro exists in the WORK.SASMACR catalog. If there is not a macro definition, the returned value is 0.