Writing a User-Written Function

The language you choose to create a function depends on the platform on which you are running Enrichment.

Mainframe COBOL, Assembler, C

If you are running one of the Enrichment load modules compiled for IBM (Language Environment or C/370), we recommend putting the run time library and COBOL in the link pack area (LPA) to improve performance. This is especially critical if you will be using a COBOL function with Enrichment. This move will increase processing speed because mainframe systems switch modes and reload faster when reading from memory than from disk.

UNIX C
Windows Any language that creates DLLs and uses CDECL linkage.
Note: Visual Basic 6.0 and earlier creates DLLs only with STDCALL linkage. These DLLs will not work with Enrichment.

When naming user-written functions, keep in mind that user-written functions cannot have the same names as Enrichment built-in functions.