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 » WebSphere Message Broker (ACE) Support » role of CCSID and ENCODING parameters while casting ?

Post new topic  Reply to topic
 role of CCSID and ENCODING parameters while casting ? « View previous topic :: View next topic » 
Author Message
vickas
PostPosted: Tue Oct 15, 2013 2:59 am    Post subject: role of CCSID and ENCODING parameters while casting ? Reply with quote

Centurion

Joined: 18 Aug 2013
Posts: 126

I am new to MB..
I want to know the exact purpose of CCSID and ENCODING parameters while casting to or from one of the string data types...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 15, 2013 3:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

If you are new to WMB, the very first thing you need to learn is how to read the documentation.

Spend a lot of time trying to find things in the InfoCenter. It will save you a LOT of time later on, and save you a LOT of grief from other people who expect you to know how to do this.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 15, 2013 4:47 am    Post subject: Re: role of CCSID and ENCODING parameters while casting ? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vickas wrote:
I want to know the exact purpose of CCSID and ENCODING parameters while casting to or from one of the string data types...


They control the CCSID and encoding used by WMB during the casting process. What did you think they were doing? What happens when you try some experimental casts within WMB?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dogorsy
PostPosted: Tue Oct 15, 2013 6:04 am    Post subject: Re: role of CCSID and ENCODING parameters while casting ? Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

vickas wrote:
I am new to MB..
I want to know the exact purpose of CCSID and ENCODING parameters while casting to or from one of the string data types...


What does the documentation say ?, is it not clear ?
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Oct 15, 2013 6:11 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

In the spirit of the question:
http://www.joelonsoftware.com/articles/Unicode.html

Understand that document, and you will probably understand why CCSID and ENCODING are used in ESQL CASTs.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
vickas
PostPosted: Tue Oct 15, 2013 8:30 pm    Post subject: Reply with quote

Centurion

Joined: 18 Aug 2013
Posts: 126

InfoCenter couldn't help me to know their exact purposes while casting.
It says
CCSID parameter is used to specify the code page of the source or target string.
ENCODING parameter is used to specify the encoding for certain conversions.
can u explain me in brief what does the above statements mean ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 15, 2013 9:32 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

vickas wrote:
InfoCenter couldn't help me to know their exact purposes while casting.
It says
CCSID parameter is used to specify the code page of the source or target string.
ENCODING parameter is used to specify the encoding for certain conversions.
can u explain me in brief what does the above statements mean ?

I see your confusion:
CCSID is for the conversion of text
ENCODING has nothing to do with XML Encoding and is used for the conversion of numbers (little / big endian).

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Wed Oct 16, 2013 1:58 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

fjb_saper said:
Quote:
ENCODING has nothing to do with XML Encoding and is used for the conversion of numbers (little / big endian).

That is correct, except for one scenario. UTF-16 has bigEndian and littleEndian variants. If you specify UTF-16 ( and *not* UTF-16LE or UTF-16BE ) then the ENCODING property is used to select the bigEndian or littleEndian variant.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
aggarwal.intouch
PostPosted: Wed Oct 16, 2013 2:03 am    Post subject: Reply with quote

Acolyte

Joined: 30 May 2011
Posts: 56
Location: India

Encoding. This setting defines the way in which a machine encodes numbers; that is, binary integers, packed-decimal integers, and floating point numbers. Numbers that are represented as characters are handled in the same way as all other string data.


Ref: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac12380_.htm
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » role of CCSID and ENCODING parameters while casting ?
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.