Bindable application programming interfaces (APIs) are available to all ILE languages. In some cases they provide additional function beyond that provided by a specific ILE language. They are also useful for mixed-language applications because they are HLL independent.
You access ILE bindable APIs using the same call mechanisms used by ILE RPG to call procedures, that is, the CALLP operation or the CALLB operation. If the API returns a value and you want to use it, call the API in an expression. For the information required to define a prototype for an API, see the description of the API in the CL and APIs section of the Programming category in the IBM® i Information Center at this Web site - http://www.ibm.com/systems/i/infocenter/. Figure 1 shows a sample 'call' to a bindable API.
D CEExxxx PR EXTPROC('CEExxxx')
D parm1 ...
D ...
C CALLP CEExxxx( parm1 : parm2 : … :
parmn : feedback)
or
C CALLB 'CEExxxx'
C PARM parm1
C PARM parm2
...
C PARM parmn
C PARM feedback
For more information on bindable APIs, refer to the CL and APIs section of the Programming category in the IBM i Information Center at this Web site - http://www.ibm.com/systems/i/infocenter/.