Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
That environment variable indicates the CCSID your app wishes to use and already overrides the one set on the queue manager; see here. If you don't set a CCSID on your client the queue manager will default to the one it's set to but a queue manager supports any code page that's available in the OS it's running on.
The key point is that the CCSID you use must match the code page of the message payload. If that differs from the code page of the MQ client reading the message and all the requirements for conversion are met the queue manager will attempt to convert the message payload to the target code page. In all other circumstances the queue manager will deliver the message as put and assume the application will sort it out. _________________ Honesty is the best policy.
Insanity is the best defence.
If you don't set a CCSID on your client the queue manager will default to the one it's set to but a queue manager supports any code page that's available in the OS it's running on.
If by client you mean MQ Client, asking for CCSID 0 (same as "not setting it") means the MQ Client libraries will automatically set the message's MQMD CCSID to the code set of the client platform, not the queue manager. This is almost always what you want. _________________ Peter Potkay
Keep Calm and MQ On
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