You can write exit routines in any programming language; however, calls to subroutines must conform to conventions used in the C programming language.
To define the parameters, structures, and return codes used in the exit routine, an exit routine must include two C program header files, PSTEXIT.H and, depending on the character format of the metadata (table names, column names, etc.), either PSTCMXIT.H or PSTCMWXT.H:
Provides the prototypes for Column Map call‑back routines and specifies the defines and structure definitions for the Column Map exit parameters.
Provides the prototypes for Column Map call‑back routines and specifies the defines and structure definitions for the Column Map exit parameters.
These header files are located in the same directory with the Optim application files.
You must compile and link each exit routine as a separate DLL. Optim loads each DLL dynamically at run time. A DLL can contain only one occurrence of a particular type of Column Map exit. However, you can include one of each type of Column Map exit routine in the same DLL.
You must use the name of the DLL in the Column Map. Specify the DLL name as it is defined to the platform (that is, do not use the generic name). Write the DLL to name and export the actual functions that implement the exit routine:
Each Column Map exit routine must satisfy the following requirements: