|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
REHOST from IBM mainframe to AIX - Signed COMP-3 issue |
« View previous topic :: View next topic » |
Author |
Message
|
shilpa.sabade |
Posted: Thu Mar 13, 2014 11:25 am Post subject: |
|
|
Voyager
Joined: 23 Feb 2011 Posts: 76
|
Hi all,
Here is my observation with AIX -COBOL program .. I put some DISPLAY statements and ran program again ..
1. Its not issue with MQMD Format .. program is able to identify all STRING fields.
2. Application abends - when it hits Pack-decimal data .
that makes me confused - why MQGET with CONVERT is not working .. or why application does not like Encoding = 785 ( which works with Z/OS)
Is there a different Encoding to handle packed fileds in ASCII world? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Mar 13, 2014 11:58 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
If you have even one byte of packed decimal data in your message, it instantly becomes incorrect to tag that message with MQMD_FORMAT of "MQSTR ".
"MQSTR " in the MQMD_FORMAT is telling MQ that 100% of the bytes in the payload are plain character data.
Packed Decimal data is not plain character data.
You are incorrectly describing the data in your message, so MQ makes the wrong assumptions on what those individual bytes mean, so when it converts those bytes using bad assumptions you get garbled output. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 13, 2014 12:55 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
PeterPotkay wrote: |
If you have even one byte of packed decimal data in your message, it instantly becomes incorrect to tag that message with MQMD_FORMAT of "MQSTR ".
"MQSTR " in the MQMD_FORMAT is telling MQ that 100% of the bytes in the payload are plain character data.
Packed Decimal data is not plain character data.
You are incorrectly describing the data in your message, so MQ makes the wrong assumptions on what those individual bytes mean, so when it converts those bytes using bad assumptions you get garbled output. |
It might be easier/quicker to have the z/OS app (that creates the message) modified to convert the packed-decimal field to a non-packed field BEFORE putting the message to the queue.
Alternatively, you could provide a data-conversion exit (either on the receiving AIX qmgr or the sending z/OS qmgr) that can do the necessary conversion for you. Search google for 'writing a data conversion exit websphere mq'. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Mar 14, 2014 5:44 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
bruce2359 wrote: |
It might be easier/quicker to have the z/OS app (that creates the message) modified to convert the packed-decimal field to a non-packed field BEFORE putting the message to the queue.
|
The exact thing we told an app here last month. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|