Defining Defaults (DEFINE-!ENDDEFINE command)
The optional !DEFAULT keyword in the macro definition establishes default settings for
arguments.
!DEFAULT. Default argument. After !DEFAULT, specify the
value you want to use as a default for that argument. A default can
be specified for each argument.
Example
DEFINE macdef (arg1 = !DEFAULT (V1) !TOKENS(1)
/arg2 = !TOKENS(1)
/arg3 = !TOKENS(1))
frequencies variables = !arg1 !arg2 !arg3.
!ENDDEFINE.
macdef arg2=V2 arg3=V3.
-
V1is defined as the default value for argumentarg1. Sincearg1is not specified on the macro call, it is set toV1. - If
!DEFAULT (V1)were not specified, the value ofarg1would be set to a null string.