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:
  • iCobolLib for COBOL generation.
  • iJavaLib for Java™ generation.

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

The simplest way to add these files to your workspace is to add the EGL with IBM i objects support feature to your project. For more information, see Features and facets of EGL projects.

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.