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

Nop instruction

Other programming languages use isolated semicolons as empty instructions. In Rexx programs, isolated semicolons are not empty instructions. The NOP instruction is explicitly used for this purpose instead. For example, after the then or else keyword of an if instruction group another instruction is required. The following program is erroneous:

The correct way to program this in Rexx uses the NOP instruction instead.

Similarly, for a select instruction group, after the then keyword of a when clause an instruction must be provided. When an instruction is absent error code 9 (unexpected when or otherwise) is raised. For example, the following program is erroneous:

The correct way to program this in Rexx uses the NOP instruction instead.


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