SYSMENV Automatic Macro Variable

Contains the invocation status of the macro that is currently executing.
Type: Automatic macro variable (read only)

Details

The following are values for SYSMENV:
SMENV Values and Descriptions
Value
Description
S
The macro currently executing was invoked as part of a SAS program.
D
The macro currently executing was invoked from the command line of a SAS window.