Language Reference
FINISH Statement
FINISH <module-name>;
This statement is supported by the IML procedure and the iml action.
The FINISH statement signals the end of a module and the end of module definition mode. Optionally, the FINISH statement can take the module name as its argument. See the description of the START statement and consult Chapter 5 for further information about defining modules.
Some examples follow:
start myAdd(a,b);
return (a+b);
finish;
start mySubtract(a,b);
return (a-b);
finish mySubtract;
r = myAdd(5, 3);
s = mySubtract(5, 3);
print r s;
Figure 160: Results of Calling Modules
| r | s |
|---|---|
| 8 | 2 |
Last updated: May 07, 2026