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 API Support » Data conversion problem - Win2K to AS/400

Post new topic  Reply to topic
 Data conversion problem - Win2K to AS/400 « View previous topic :: View next topic » 
Author Message
obrienp
PostPosted: Fri Aug 09, 2002 7:10 am    Post subject: Data conversion problem - Win2K to AS/400 Reply with quote

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
View user's profile Send private message
oz1ccg
PostPosted: Fri Aug 09, 2002 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
obrienp
PostPosted: Fri Aug 09, 2002 10:17 am    Post subject: Data conversion problem Reply with quote

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

MQSeries.net Forum Index » IBM MQ API Support » Data conversion problem - Win2K to AS/400
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.