Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQSeries IMS Bridge

Status
Not open for further replies.

Bendit

Programmer
Jul 1, 2002
1
GB
Hi all,
I am trying to send a message from MQSeries on windows-2000
thru the MQSeries IMS Bridge to Mainframe. This message is supposed to trigger an IMS process. The message never reaches the destination queue. It is always found in the dead letter queue and with a feedback code of 292 which means "A segment length field was negative in the
application data of the message". I am unable to make anything out of this. I am passing a valid string preceeded by an IMS header. If any of you can throw some light, it will be greatly appreciated. I am a novice to MQSeries and have been grappling with this problem for quite sometime now.

Thanks

Jamey
 
Hi Jamey,

you have to format the message data itself in a form described in the MQS Application Programming Guide:


Since this is not trivial, we use a conversion program always running on the mainframe (get wait unlimited), which converts a character numeric field to a hexadecimal field (described in the manual above).

So if you have a length of 80 (C'0075' 4 bytes) it converts to X'004B0000' (again 4 bytes).

Hope this helps

Norbert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top