addElement()
The addElement() function adds data to a specified iSeries® data queue.
If the data consists of an array of HEX(2) elements, it is written as raw bytes; otherwise it is written as a STRING. If the data queue was set up as a keyed queue, you can specify a key that programs can use to filter the elements they read from the queue.
Syntax
iplatformLib.addElement(
dataQueueDef DataQueueDefinition inOut,
elementData ANY inOut
[, keyData ANY in] )
- platform
- The string
CobolorJava, depending on the platform for which you are generating the program. - dataQueueDef
- A variable based on the DataQueueDefinition Record (see iSeries Record definitions).
- elementData
- The data you want to place in the data queue. If the data type is HEX(2)[], the data is written as bytes; otherwise it is written as STRING type.
- keyData
- Optional key specification for keyed data queues.