GROOVY Procedure

EVALUATE Command

Syntax

Required Argument

Groovy statement string
specifies a Groovy statement string that is to be parsed by the EVALUATE command.

Optional Arguments

LOAD | PARSEONLY | NORUN
parses the Groovy statement 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 evaluated.

Details

The EVALUATE command parses the Groovy statement that is provided in the quoted string 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 statement 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.
EVAL is an alias for the EVALUATE command.