WriteRead_DifferentQueue

The sample process uses the WriteQueue activity to write to data queue A, and the ReadQueue activity reads messages from the data queue B. The CallProgram activity is used to call an example IBM i program that reads messages from data queue A and writes those messages to data queue B, where A and B are configurable through ActiveMatrix BusinessWorks™.

Configuring the Activities to Read and Write Messages
  1. Add the Timer, WriteQueue, CallProgram, ReadQueue, and Log activities.
  2. Provide the IBMi Connection, Data Queue name for WriteQueue and ReadQueue activities, and program object details for the CallProgram activity.
    • WriteQueue for Queue A - ADAS400/AS400PUB
    • ReadQueue for Queue B - ADAS400/AS400SUB
    • Program Object From Queue A to Queue B- ADAS400/PUBDTQTRF





  3. On the Advanced tab, declare the schema for the input message for the data queue.

  4. On the Input tab of the WriteQueue activity, populate the input message for the data queue.

  5. On the Advanced tab of the CallProgram activity, click Initialize Schema to populate the input or output parameters for the program. The input data queue A and Output data queue B are configurable through ActiveMatrix BusinessWorks™.

  6. On the Input tab of the CallProgram activity, provide the parameter values that identify the data queues.

  7. On the Advanced tab of the ReadQueue activity, declare the schema.

Expected Results

After running or debugging the WriteRead_DifferentQueue process, messages are written to the AS400PUB data queue and received from the AS400SUB data queue.