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