If you want to call a program as a procedure from an SQL program, you must first define the program as an external procedure. The program for which a procedure is defined does not need to exist at the time the procedure is defined. In order to define a program as an external procedure:
To define your external procedure on the New External Procedure dialog, use the following steps for the tabs.