The SUBMIT command parses
the Groovy statements that are between the SUBMIT and ENDSUBMIT commands
into a groovy.lang.Script object and calls the Run method on the Script.
If one of the LOAD, PARSEONLY, or NORUN options is present, then this
command parses the Groovy statements into a Class object but does
not run it. Any classes that are defined by the Groovy code are then
available for use by PROC GROOVY statements or by Java DATA Step Objects.
Note:
-
The ENDSUBMIT statement must be
on a line by itself and preceded by only blank space.
-
Macro substitution is disabled
between the SUBMIT and ENDSUBMIT commands.
-
PROC GROOVY with multi-line submit
commands cannot be used inside a macro.