Examples of PROCESS Statements

In the following example, the procedure AGENT, which has no parameters, is invoked as an asynchronous process. The task TSK is associated with the process.

PROCESS AGENT [TSK]

In the following example, the procedure ACHILD is invoked as an asynchronous process and passed the three parameters OUTARRAY, YOUREVENT[INDX], and COUNT. The task designated by TSKARAY[INDX] is associated with the process.

PROCESS ACHILD(OUTARRAY,YOUREVENT[INDX],COUNT) [TSKARAY[INDX]]

In the following example, the procedure P_EXT is invoked as an asynchronous process using the NAME task attribute.

TASK TSK;
PROCEDURE P_EXT; EXTERNAL;
REPLACE TSK.NAME BY "SYSTEM/INTERFACE.";
PROCESS P_EXT[TSK];