Map1
The content of the FileIn1.txt source text file on the TextFile input card 1 maps to the message on the .\queue1 MSMQ transactional queue (output card).
The
setting defined in the Map Designer for the MSMQQueue output card 1 is:-QN .\queue1 -HDR -T
The Queue Name adapter command (-QN .\queue1) specifies that the data from the input card should be delivered as a message to the queue named .\queue1. The Header adapter command (-HDR) specifies inclusion of the message header properties other than the body of the message. These properties are LABEL (LABEL) and CORRELATION ID (CID). The Trace adapter command (-T) activates the adapter trace function to track function calls and to store them in a trace log file. The default log file name is msmqtrace.log.
Before you run the Map1 map, be sure that the .\queue1 transactional queue already exists or change the queue name in the
setting to some existing transactional queue. Purge the queue before you run the map.The MSMQQueue output card 1, shown below, defines the message having the same content (message body) as the input file from the TextFile input card 1. The PROPID_M_CORRELATIONID message header property VT_CAB is defined as CIDA. The PROPID_M_LABEL message header property VT_LPSTR is defined as LabelA.
Run Map1 and check the content of the .\queue1 queue.