Program Requirements

If you are writing a program to be stored on a server and called as a 3GL stored procedure, you must:

Theoretically, any 3GL language can be used provided it can be compiled and linked as a loadable library. However, reference examples and tools (GENCPGM) to assist in compilation and linking only exist for a limited set of languages. Thus, any 3GL language is supported, but some are untested and unlikely to be tested. For more information about GENCPGM, see GENCPGM Usage for languages supported and the samples in this chapter. If you are using an untested language and are having problems, contact Information Builders customer support so that a specialist can assist you.

For details on calling a compiled program with EDARPC or CALLPGM, see Calling a Program as a Stored Procedure.

Note: Loadable library is a generic term. The actual technical name varies by operating system. Other commonly used terms for these types of files are dll, service program, shared library, and shared image. The script, gencpgm, is provided on UNIX, Windows, IBM i, and OpenVMS to assist in the actual compilation of a program, but any method is allowed provided that it links in the appropriate library and builds the file as a dynamic load library (for example, .so for UNIX, .dll for Windows, service program on IBM i, and shared library on OpenVMS). For more information, see GENCPGM Usage.


iWay Software