DEFINE
Defines a macro: named text with optional arguments, expanded before the syntax runs.
Syntax
Section titled “Syntax”DEFINE !name ([!POSITIONAL !TOKENS(n) | !CHAREND('/') …] [key = !TOKENS(1) …]) body!ENDDEFINE.Synopsis
Section titled “Synopsis”| Kind | Preprocessor directive (expanded before parsing) |
Examples
Section titled “Examples”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.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.