%SYSMACDELETE Statement

Deletes a macro definition from the WORK.SASMACR catalog.
Type: Macro Statement
Restriction: Allowed in macro definition and open code

Syntax

%SYSMACDELETE macro_name </ option>;

Required Argument

macro_name
the name of a macro or a text expression that produces a macro variable name.

Optional Argument

NOWARN
specifies that no warning diagnostic message should be issued.

Details

The %SYSMACDELETE statement deletes the macro definition of the specified macro from the WORK.SASMACR catalog. If no definition for the macro exists in the WORK.SASMACR catalog, a WARNING diagnostic message is issued. If the macro is currently being executed, an ERROR diagnostic message is issued.