AS/400 Adapter 6.0.1 | webMethods AS/400 Adapter Documentation | webMethods AS/400 Adapter Installation and User’s Documentation | Built-in Services | Access Services | wm.as400.access:dataQEntryToRecord
 
wm.as400.access:dataQEntryToRecord
Converts a data queue entry into an IData record.
Note:
Use this service in a Data Queue Listener notification node (service invoked by the listener) to convert the data queue entry placed in the pipeline by the listener into an IData record.
Input Parameters
$AS400Alias
StringThe connection alias of the AS/400 server.
$AS400
com.ibm.as400.access.AS400 Optional. A connected AS/400 object.
Note:
Either $AS400 or $AS400Aliasshould be provided as an input.
dataQueueEntry
One of the following:
*com.ibm.as400.access.DataQueueEntry In case the entry is read from a sequential data queue.
*com.ibm.as400.access.KeyedDataQueueEntry In case the entry is read from a keyed data queue.
*byte[] byte array representation of the data queue entry. The Data Queue Listener places this queue entry in the pipeline after it has been read from the data queue.
dataQueueEntryKey
byte[] byte array representation of the key of the keyed data queue entry. The Data Queue Listener places this queue entry key in the pipeline after it has been read from the data queue.
recordMetaData
Record Definition of the record (dataQueueEntry) as follows:
*DataName. The name of the program parameter.
*DataType. The AS/400 data type of the program parameter.
*DataLength. The length of the program parameter. For decimal types type xx.yy, for example, 5.2.
recordKey
Record Definition of the key used to search the keyed data queue for an entry. Leave this field blank, if the entry was read from a sequential data queue.
*KeyType. The AS/400 data type of the key.
*keyLength. The length of the key.
*KeyValue. The key value used to search the data queue for an entry.
Output Parameters
success
String The status of the operation. Contains true if the data queue read was successfully created else contains false.
keyValue
String The key for this data queue entry read from the keyed data queue.
senderInfo
String Sender information for this data queue entry.
recordData
Record The values (Name/Value Pair) corresponding to the dataQueueEntry read from the Queue. If no entry was read this record does not exist in the pipeline. The values are as follows:
*Name. The name of the record field.
*Value. The value of the record field.
Examples
wm.as400.sample.simpleDQ:DQListener
wm.as400.sample.keyedDQ:DQListener