GROOVY Procedure

SUBMIT Command

Syntax

ENDSUBMIT;

Required Argument

Groovy statements
specifies Groovy statements that are to be parsed by the SUBMIT command into a groovy.lang.Script object.

Optional Arguments

LOAD | PARSEONLY | NORUN
parses the Groovy statements into a groovy.lang.Script object, but does not run it. The arguments are aliases for each other.
arguments
specifies arguments that are passed to the code that is being submitted.

Details

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.