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 IndexIBM MQ API SupportHow to set CCSID value from C#

Post new topicReply to topic
How to set CCSID value from C# View previous topic :: View next topic
Author Message
msarvankmr
PostPosted: Tue Apr 18, 2017 5:57 am Post subject: How to set CCSID value from C# Reply with quote

Newbie

Joined: 18 Apr 2017
Posts: 2

Hi ,

I need to change the CCSID value of a message which I am sending from c# application. How to set MQMD Ccsid value from c#?

And also advice how to view the updated CCSID value for a message by using MQ explorer?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Apr 18, 2017 6:19 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 7862
Location: US: west coast, almost. Otherwise, enroute.

Other than posting here, what research have you done?
_________________
I would tell you a UDP joke, but you might not get it.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Apr 18, 2017 6:24 am Post subject: Re: How to set CCSID value from C# Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24648
Location: Ohio, USA

msarvankmr wrote:
I need to change the CCSID value of a message which I am sending from c# application. How to set MQMD Ccsid value from c#?


It's a property of the MQMessage class.

msarvankmr wrote:
And also advice how to view the updated CCSID value for a message by using MQ explorer?


Look at the message in MQ Explorer. View the CCSID field.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Apr 18, 2017 7:35 am Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5578
Location: UK

Setting the MQMD.CCSID does not necessarily cause the data to be generated in that code page.

When viewing data, be careful of data conversion, some tools will perform a MQGET with MQGMO_CONVERT - which is often useful but also can mislead.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Apr 18, 2017 4:31 pm Post subject: Reply with quote

Padawan

Joined: 25 Mar 2003
Posts: 1742
Location: Melbourne, Australia

zpat wrote:
Setting the MQMD.CCSID does not necessarily cause the data to be generated in that code page.

Correct. When putting a message, this is telling MQ that the data is in this code page. It is the app responsibility to ensure that this is always the case.
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportHow to set CCSID value from C#
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.