Skip to content

DO REPEAT

Repeats a block of commands with stand-in names replaced by lists of variables or values.

DO REPEAT stand = list [/ stand2 = list].
commands
END REPEAT.
Kind Preprocessor directive (expanded before parsing)
DO REPEAT v = q1 TO q5 / r = rq1 TO rq5.
COMPUTE r = 6 - v.
END REPEAT.
  • Lists may use TO for variables or numeric ranges; new variable names are created as needed.

DEFINE, INSERT


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