WebSphere Transformation Extender MQ PUT in IF statement

Call a MQ PUT or Get in a WTX Input or output card with an IF statement:

IF ( Field1 < Field2, PUT("MQS","-QMN QM1 -QN WTX.OUT -DH", LEFT(PACKAGE(MessageDescriptor2 Header:In2),348)+PACKAGE(IndexNumber)+RIGHT(PACKAGE(MessageDescriptor2 Header:In2),12)+TEXT(In1) ),PUT("MQS","-QMN QM1 -QN WTX.OUT -DH", LEFT(PACKAGE(MessageDescriptor2 Header:In3),348)+PACKAGE(IndexNumber)+RIGHT(PACKAGE(MessageDescriptor2 Header:In3),12)+TEXT(In1) ))

The WTX statement will test if Field 1 is bigger than Field 2 if True it will put the content of the message built onto a queue using the PUT command. The "MQS" tells WTX to use the MQ Adapter and -QMN specifies Queue Manager and QN specifies Queue Name.

Websphere Transformation Extender with Websphere MQ

How do you set a input or Output Card to post the transformed or incoming file to a Websphere MQ queue?

This will show how WTX can GET or PUT a untransformed or transformed input or output to a MQ queue.

Step 1: Open up WTX Design Studio and create a Transformation map with input and output card.

Step 2:  Specify the Map Location for the WTX input or output card (depending if you want the message to come from MQ or to put a transformed data to an MQ queue)

Step 3: Select the source to be Websphere MQ (server) and specify the Queue Manager name and Queue you want to place or put the message:

-QMN YOUR_QUEUE_MANAGER_NAME -QN YOUR_QUEUE_NAME

Test this by putting a message on that queue and running the transformation map.