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!

Data conversion problem - Win2K to AS/400

Status
Not open for further replies.

obrienp

Programmer
Aug 9, 2002
2
US
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.


 
We have seen this problem as well in a similar app. Prior to doing your MQPut call in the VB app, are you making sure that the message descriptor is set to it's default values?

Vinoo Palayoor
 
The char code set and encoding values were being reset to the defaults. The format was not being set to the string value - it was being set to none. Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top