|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Greek Data Issue |
« View previous topic :: View next topic » |
Author |
Message
|
mkazmi |
Posted: Fri Jul 07, 2006 12:24 am Post subject: Greek Data Issue |
|
|
Newbie
Joined: 06 Jul 2006 Posts: 2
|
Hello,
Application Platform: VB 6 and same result with c#.net
MQ Series version 5.2 CDS05
We have an application which sends data across platforms from Win2K to Mainframe. The application has been working fine until we started sending data for the Greek market. All other European markets (English/Germen/French etc) are fine. The Greek data does not seem to work.
The data flow is as follows:
W2K app --> Win2K MQ Server --> Mainframe MQ Server --> CONVERTER ASCII2EBCDIC -->Mainframe App.
I have checked the Greek data in the Win2K MQ Server (with monitoring tools) and found that the Greek characters are converting to "??????" with a hex value of 6F.
While trying to resolve the issue, I changed the Win2K Default Language to Greek and tested again and found that all Greek characters were working fine but this introduced another issue. This time all the special characters (Ü, ö, ä etc) in the German/French etc ( all Western European) are converted to "??????". So I have changed the default language back to English.
I would like to stress that conversion is happening when the message is put on to the queue, this is before when it gets to the "CONVERTER ASCII2EBCDIC".
The Queue manager is configured to CCSID: 850.
Any help would be very much appreciated. Thanks
Here is my code in c#.
Code: |
public void MQSendMessage(String inputXml, Int32 siteId, String countryCode, String requestQueueName,
String responseQueueName, bool blangSupport, String transactionName, String formatValue,
String transactionUserValue,String hexAscii, String hexEbcdic, String qM)
{
//Connecting to the QManager and Queue
MQSessionClass objSession = new MQSessionClass();
MQQueueManager objQM = new MQQueueManager();
MQQueue objQueue = new MQQueueClass();
MQDistributionListClass mqc = new MQDistributionListClass();
//Connect to the Queue Manager
objQM = (MQQueueManager)objSession.AccessQueueManager(qM);
objQueue = (MQQueue)objQM.AccessQueue(requestQueueName, (int)MQ.MQOO_SET_IDENTITY_CONTEXT|(int)MQ.MQOO_OUTPUT, qM, "", "");
String mqMessage = null;
if (MQ.MQCC_OK == 0)
{
MQPutMessageOptions MessageOptions;
MessageOptions = (MQPutMessageOptions)objSession.AccessPutMessageOptions();
MQPutMessageOptions objPMO = new MQPutMessageOptionsClass();
objPMO.Options = (int)MQ.MQPMO_SET_IDENTITY_CONTEXT;
//Accouting Token to be created
String accountingTokenPad = new String('0', 48);
MQMessage objMsg;
objMsg = (MQMessage)objSession.AccessMessage();
objMsg.Expiry = (int)MQ.MQEI_UNLIMITED;
objMsg.Encoding = (int)MQ.MQENC_NATIVE;
objMsg.Expiry = (int)MQ.MQEI_UNLIMITED;
objMsg.Feedback = (int)MQ.MQFB_NONE;
objMsg.MessageType = (int)MQ.MQMT_REQUEST;
objMsg.ReplyToQueueManagerName = "";
objMsg.ReplyToQueueName = responseQueueName;
objMsg.Report = (int)MQ.MQRO_EXCEPTION_WITH_FULL_DATA;
objMsg.UserId = transactionUserValue;
if(blangSupport)
{
objMsg.Format = formatValue;
objMsg.PutApplicationType = (int)MQ.MQAT_WINDOWS_NT;
}
else
{
objMsg.Format = "MQIMSVS ";
objMsg.PutApplicationType = (int)MQ.MQAT_DEFAULT;
}
String accountingToken = "00000" + hexEbcdic.ToUpper() + "00000" + hexAscii.ToUpper();
objMsg.AccountingTokenHex = accountingToken + accountingTokenPad;
objMsg.CharacterSet = 850;
MQDistributionListClass objDesc = new MQDistributionListClass();
objDesc.AlternateUserId = "";
String buffer;
buffer = inputXml;
Int32 LL = Encoding.Default.GetByteCount(buffer.ToString()) + 13;
int modvalue = LL % 256;
int divvalue = LL / 256;
Char smodValue = Convert.ToChar((int)(LL % 256));
Char sdivValue = Convert.ToChar((int)(LL / 256));
Char szeroValue = Convert.ToChar((int)(0));
mqMessage = smodValue.ToString() + sdivValue.ToString() +
szeroValue.ToString() + szeroValue.ToString() +
transactionName + " " + buffer;
objQueue.Open();
byte[] mqbytes = Encoding.Default.GetBytes(mqMessage);
objMsg.Write(mqbytes);
//Send the message
objQueue.Put(objMsg, objPMO);
objDesc = null;
objMsg = null;
objPMO = null;
objQueue.Close();
objQueue = null;
objQM.Disconnect();
objQM = null;
objSession = null;
}
return;
} |
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 07, 2006 12:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Eliminating the obvious as a first move, you don't have sender channel conversion switched on do you? Or any channel exits that might be fiddling around? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mkazmi |
Posted: Fri Jul 07, 2006 1:13 am Post subject: |
|
|
Newbie
Joined: 06 Jul 2006 Posts: 2
|
Sender channel data conversion is set to "No". I have checked the system sender channels as well they are also set "no". |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|