|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Data conversion problem - Win2K to AS/400 |
« View previous topic :: View next topic » |
Author |
Message
|
obrienp |
Posted: Fri Aug 09, 2002 7:10 am Post subject: Data conversion problem - Win2K to AS/400 |
|
|
 Newbie
Joined: 09 Jul 2002 Posts: 6
|
Environment: Win2K workstation with MQ Client connection to AS/400 running MQSeries V4R2. Two local queues defined on the AS/400 (request and reply). VB app running on workstation creates a message containing an account number and puts it into the request queue. Triggered COBOL program running on AS/400 gets the message, populates several fields and puts a message to the reply queue. The VB app gets the reply message and populates a simple form with the results.
Problem: When the account number is displayed on the AS/400, the account number looks like garbage. When the reply data is displayed in the VB app, it all looks like garbage except for the account number. I tried using MQGMO-CONVERT in the COBOL program but got an error – return code 2110 – MQRC-FORMAT-ERROR which seems to indicate that no conversion is necessary.
I’m at a loss. Does anyone have any idea on what’s wrong and how I can fix it??
Any help would be appreciated. |
|
Back to top |
|
 |
oz1ccg |
Posted: Fri Aug 09, 2002 7:53 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
You've tried:
Quote: |
I tried using MQGMO-CONVERT in the COBOL program but got an error - return code 2110 - MQRC-FORMAT-ERROR which seems to indicate that no conversion is necessary. |
What value do you have in MQMD-FORMAT ?
To use MQGMO-CONVERT MQMD-FORMAT must contain 'MQSTR ' (or another predefined format), this tells MQSeries what your message contains..... otherwise MQSeries don't give a cent about your data.
I hope it might helpy you.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
obrienp |
Posted: Fri Aug 09, 2002 10:17 am Post subject: Data conversion problem |
|
|
 Newbie
Joined: 09 Jul 2002 Posts: 6
|
Thank you very much for getting me pointed in the right direction. With minor changes both applications are working fine now.
Your $.02 is worth a million  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|