Skip to content

DEFINE

Defines a macro: named text with optional arguments, expanded before the syntax runs.

DEFINE !name ([!POSITIONAL !TOKENS(n) | !CHAREND('/') …] [key = !TOKENS(1) …])
body
!ENDDEFINE.
Kind Preprocessor directive (expanded before parsing)
DEFINE !demo () age income gender !ENDDEFINE.
FREQUENCIES !demo.
  • Supports positional and keyword arguments with defaults, !DO loops, !IF/!ELSE and string functions.
  • Errors are reported as MACRO ERROR with the original line number.

INSERT, DO REPEAT


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.