iSeries function calls

iSeries® functions provide access to data queues and data areas.
These functions are not in a system library, but rather in two standard EGL libraries that you can add to your project. The EGL library you use for iSeries object access depends on the platform for which you are generating:

The names and signatures of the functions are the same in both libraries.

For source file locations, see EGL support for IBM i objects.

The following functions are available:

Table 1. iCobolLib or iJavaLib functions
Function Description
addElement(dataQueueDef, elementData[, keyData]) Adds data to a specified data queue.
result = browseNextElement(dataQueueDef, elementData, wait[, keyData, searchType]) Reads data from a specified data queue but does not delete the data from the queue.
clearQueue (dataQueueDef) Removes all data from a specified data queue.
result = getDataArea (dataAreaDef) Returns the current contents of a specified data area.
result = getNextElement(dataQueueDef, elementData, wait[, keyData, searchType]) Reads data from a specified data queue and deletes the data from the queue.
updateDataArea(dataAreaDef, elementData) Replaces the previous contents of a specified data area with new data.

Feedback