The @RUN statement makes it possible to declare a user routine as a subroutine. A description of the @RUN statement can be found in the Statements User Guide [1].
@RUN ENTRY = ... [,MODLIB =...] [,UNLOAD] [, ’...’]
In Unicode mode, the user routine is called via the same interface as statement routines in a user-defined statement (see section “User defined statements - @USE”). The string specified in the statement is passed in the COMMAND
buffer.
The only difference to a statement routine is that EDT error recovery is deactivated when a user routine is called whereas it remains active in the case of statement routines (provided that it was already active).
The user routine can use the functions of the IEDTGLE
interface. The same restrictions as for statement routines apply.
The associated initialization routine is also called for user routines (on each call) (see the section on calling initialization routines for user-defined statements). If no initialization routine is defined then the @RUN statement is rejected with the message EDT5469
.
Caution
The format of the statement and interface used to call the routine are different in Unicode and compatibility mode.