Invocation

This statement can only be embedded within an application program or issued interactively. It is an executable statement that cannot be dynamically prepared. It must not be specified in Java(TM) or REXX.

CONNECT is not allowed in a trigger, a function, or a procedure if the procedure is called on a remote application server.