User-Defined External Functions

In CCL projects, use the CREATE LIBRARY statement to call user-defined functions written in C/C++ or Java.

Load C/C++ functions from shared libraries, .so files in Linux and UNIX, and .dll files in Windows. Load Java functions from either .class files or .jar files.

Declare external functions in CCL using the CREATE LIBRARY statement. Once declared, you can use the functions anywhere you use built-in functions.

Note: C/C++ external library calls support all datatypes, namely boolean, integer, long, float, money(n), date, bigdatetime, and binary.

Java external library calls only support integer, long, double, and string datatypes.

Complex types such as dictionaries, vectors, event caches and record types are not supported in external functions.