The SHELL special variable in the binding is set to the groovy.lang.GroovyShell that
was used to compile the current script. You must submit a CLEAR statement before
changes that were made to the execution.groovy file in this example are reflected in
subsequent runs of the code.
proc groovy;
eval "shell.run(
new File(""execution.groovy""),
[] as String[] )";
quit;
Note:If you need Groovy scripts that will be reloaded automatically when they are
modified, then create a new instance of the GroovyScriptEngine class.
Example: Define Classes
Features:PROC GROOVY statement option
CLASSPATH
SUBMIT statement option
PARSEONLY
SUBMIT Statement
ENDSUBMIT ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.