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 » IBM MQ API Support » ASCII to EBCDIC using WMQSI

Post new topic  Reply to topic
 ASCII to EBCDIC using WMQSI « View previous topic :: View next topic » 
Author Message
sboucher
PostPosted: Wed Nov 27, 2002 5:33 am    Post subject: ASCII to EBCDIC using WMQSI Reply with quote

Acolyte

Joined: 27 Oct 2002
Posts: 52

I have the following set in a compute node just prior to outputting to our VSE System

SET OutputRoot.MQMD.CodedCharSetID = 037;
SET OutputRoot.MQMD.Encoding = 785;

The VSE Code Page is set to 037 and the messages arrive to the Q however the data is unintelligible. My hunch is the ASCII to EBCDIC conversion is not working. Any Ideas.

Thanks

Scott
_________________
Scott A. Boucher
Database Administartor
Back to top
View user's profile Send private message Send e-mail
leongor
PostPosted: Wed Nov 27, 2002 5:55 am    Post subject: Reply with quote

Master

Joined: 13 May 2002
Posts: 264
Location: Israel

Why to change CCSID on MQPUT (Output Node) ?
You need that your message will be in its original CCSID.
MQGET on VSE must convert it to EBCDIC.
_________________
Regards.
Leonid.

IBM Certified MQSeries Specialist.
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Nov 27, 2002 7:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Scott,

Use this instead,
Code:

SET OutputRoot.Propertis.CodedCharSetID = 037;
SET OutputRoot.Propertis.Encoding = 785;

_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
PeterPotkay
PostPosted: Wed Nov 27, 2002 4:44 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Kirani,
I'm not an WMQI expert, but is that going to do anything? If the message coming into WMQI is ASCII, the output will be in ASCII as well, regardless of what the MQMD is set to on the PUT. I am not aware of any conversion happening on the MQPUT.

In the above case, unless I am wrong, I would expect WMQI would still put out an ASCII message, but just be calling it EBCIDIC. In fact, it is still ASCII, and the recieving convert is going to try to convert to its local CCSID a message it assume is coming in as EBCIDIC, producing garbage.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Nov 27, 2002 9:08 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Hi Peter,

With above two statements, WMQI will do the data conversion.

When WMQI reads an input message from the queue, it first converts it into UCS2 (Unicode) format internally. It then convert the message to CCSID and Encoding Values set into Properties folder while writing out the message using MQOutput node. This is one of the main feature of WMQI!
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
sboucher
PostPosted: Sat Nov 30, 2002 12:42 pm    Post subject: Reply with quote

Acolyte

Joined: 27 Oct 2002
Posts: 52

I'm still not getting the convert to take place with the suggestions made here.
Thanks anyway

Scott
_________________
Scott A. Boucher
Database Administartor
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Sat Nov 30, 2002 6:11 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Hi Scott,

What is code you are using now in your Compute node to do the Data Conversion? What is your output message format/domain set to?
I think I mistyped the code in my earlier post, It should be
Code:

SET OutputRoot.Properties.CodedCharSetId = 037;
SET OutputRoot.Properties.Encoding = 785;


Add a Trace node before the MQOutput node and capture ${Root} in it, make sure it's showing the new CCSID and Encoding values in Properties folder.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » ASCII to EBCDIC using WMQSI
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.