Procedures are sequences of commands and/or options. They can be defined anywhere in the input as
[PROC ]procname=
command blocks
directives
or
PROC procname
command blocks
directives
ENDPROC
In order to avoid unexpected results, procname must differ from all known command names. Procedures must not contain geometry blocks.
Note that procedures are not executed when encountered in the input, but only when called. Procedure definitions must not be nested. Procedures can contain procedure calls up to a nesting level of 10.