Skip to main content
Skip table of contents

General Information

Part of i-effect is a native program interface to call the functions contained in the API of the product from native applications.

A service program is provided for this purpose (*SRVPGM), which can be linked to modules created by the user.

The following chapters contain a list of the interfaces contained in the service program as well as an explanation of the parameters used there.

Service program

All functions are contained in the SERVICEAPI service program in the IEFFECT library.

Sample program

The example program TSTSRVAPI can be found in the QRPGLESRC file of the IEFFECT library. The application of the functions contained in the service program is demonstrated here as an example.

To convert the example program, proceed as follows.

Create the module

CODE
CRTRPGMOD MODULE(IEFFECT/TSTSRVAPI) SRCFILE(IEFFECT/QRPGLESRCS) SRCMBR(TSTSRVAPI) DBGVIEW(*SOURCE) REPLACE(*YES) TGTRLS(V7R1M0)

Bind the program to the server program

CODE
CRTPGM PGM(IEFFECT/TSTSRVAPI) MODULE(IEFFECT/TSTSRVAPI) BNDSRVPGM((*LIBL/SERVICEAPI)) TGTRLS(V7R1M0)
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.