QueueReceiver_DataConversion

The sample process uses the QueueReceiver activity to read messages from an IBM i data queue in binary format, and then uses a Data Conversion Plugin (DCP) ParseCopybookData activity to convert the binary message to XML. Strings within the binary message are assumed to be in the character set specified in the properties of the ParseCopybookData activity.

Conversion of Messages
  1. Add the QueueReceiver, ParseCopybook, and WriteFile activities.
  2. Provide the IBMi Connection and Data Queue name. Click Verify Queue to get the data queue description.

  3. On the Advanced tab, define the input source as Binary.

  4. On the General tab of ParseCopybookData activity, configure the Copybook Resource, Character Set, and Input type.

  5. The Copybook is defined in the Resources.

  6. On the Input tab, pass the QueueReceiver message as input to the ParseCopybookData activity, in bytes.

Expected Results

After running or debugging the QueueReceiver_DataConversion process, messages are received from the ADAS400PUB data queue in the binary format and then parsed by the ParseCopybookData activity to produce XML that conforms to the schema defined in the Copybook resource.