KeyQueueOperation
The sample process uses the WriteQueue and ReadQueue activities to send and receive data from an IBM i keyed data queue.
Configuring the Activities to Read and Write Messages
- Add the Timer, WriteQueue, CallProgram, ReadQueue, Log, and WriteFile activities.
- Provide the IBMi Connection, Data Queue name for the WriteQueue activity.
- Click
Verify Queue to retrieve the data queue description. The description indicates that the data queue is a keyed data queue and gives the length of the key and data.
- On the
Advanced tab of the WriteQueue activity, add the Schema details for the input message of the data queue.
- On the
Input tab of the WriteQueue activity, populate the key value along with the other input fields. Since the data queue is defined with a key length of 5, the value entered is 11111.
- For the ReadQueue activity, provide the IBMi Connection and Data Queue name. Click
Verify Queue to retrieve the queue description, which should match the description seen previously. Again, since this queue has a key length of 5, the key value is specified as 11111.
- On the
Advanced tab of the ReadQueue activity, add the Schema details for the input message of the data queue.
- On the
Input tab of the Log activity, construct a message to be logged based on the output of the ReadQueue activity.
- On the
Input tab of the WriteFile activity, construct a message to be written to a file based on the output of the ReadQueue activity.
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.