ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » REHOST from IBM mainframe to AIX - Signed COMP-3 issue

Post new topic  Reply to topic Goto page Previous  1, 2
 REHOST from IBM mainframe to AIX - Signed COMP-3 issue « View previous topic :: View next topic » 
Author Message
shilpa.sabade
PostPosted: Thu Mar 13, 2014 11:25 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Mar 13, 2014 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Mar 13, 2014 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Fri Mar 14, 2014 5:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » REHOST from IBM mainframe to AIX - Signed COMP-3 issue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.