Kilowatt Software L.L.C.
Classic Rexx Tutorial
Language Level 4.00 (TRL-2)

Interpret instruction

The interpret instruction processes the content of the sourceExpression as though it were a sequence of Rexx instructions that were implanted in the current source program at the position of the interpret instruction. The sourceExpression is evaluated using normal expression capabilities. The resulting value can contain multiple instructions that are separated by semicolons.

The need for the interpret instruction can often be replaced by using the value built-in function instead.

The interpret instruction is a very powerful capability! There are several restrictions.

Note: you can interpret another interpret instruction within the result of the sourceExpression !

Here is an introductory example, that invokes one of three subroutines dynamically.


Kilowatt Software L.L.C. -- Classic Rexx Tutorial -- Back to top
Click here if you have any comments or questions regarding this tutorial

Last updated on: 11 Apr 2006