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 » Coverting EBCDIC to ASCII

Post new topic  Reply to topic
 Coverting EBCDIC to ASCII « View previous topic :: View next topic » 
Author Message
sebastian
PostPosted: Wed Jul 28, 2004 12:14 pm    Post subject: Coverting EBCDIC to ASCII Reply with quote

Centurion

Joined: 12 Nov 2003
Posts: 110
Location: Philadelphia

EBCDIC (MF) to ASCII (Unix)
MQSI v2.1
Control center = windows, base level CSD
Configuration Manger = windows, base level CSD
Broker server = HP/UX, CSD03

We have a mainframe application that is sending an MQSeries message in EBCDIC with an RFH header. We would like to output this message to another application in ASCII format.

I have defined input and output message sets that both have a default CCSID of 500. I am able to move fields from input to output message sets and create an output message, but the output in the message queue is still in EBCDIC with a coded character set of 1051.

How do we get this conversion to occur if the message set already has the CCSID default set?

Any help is appreciated,
Seb
_________________
sebastian signature
Back to top
View user's profile Send private message Visit poster's website
Lisa
PostPosted: Wed Jul 28, 2004 12:20 pm    Post subject: Convert Reply with quote

Master

Joined: 07 Jun 2002
Posts: 287
Location: NJ

You can use something like this

SET "OutputRoot"."MRM"."e_PIILOGCHeader"."PIIDLOGC_FILLER" =
CAST("InputRoot"."BLOB"."BLOB" AS CHAR CCSID InputRoot.MQMD.CodedCharSetId);

In this example, I receive data from the mainframe and the message flow on HP will process the message and put to MQqueue.

Hope this helps.

By the way, Control center, Configuration Manger and broker should be at the same CSD level.

Lisa
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Wed Jul 28, 2004 1:05 pm    Post subject: Reply with quote

Jedi Knight

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

Hmmm.... WMQI can do the data conversion for you in this case. All you need to do set the proper CCSID and Encoding in Properties folder.

After you mapping, in a compute node put code similar to this,

Code:

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


This code will transform the message to NT codepage.
_________________
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
EddieA
PostPosted: Wed Jul 28, 2004 1:39 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Errr. Aren't those the values for the Mainframe.

I think you need CCSID: 437 and Encoding: 546 for Windows.

But, if everything is set correctly, and the message is all character, there should never be a need to set an explicit value. You should always use MQCCSI_Q_MGR and MQENC_NATIVE when PUTting messages and then GET with Convert.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Jul 28, 2004 2:04 pm    Post subject: Reply with quote

Jedi Knight

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

Yes. My mistake!
Those values were for OS/390.
_________________
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 » WebSphere Message Broker (ACE) Support » Coverting EBCDIC to ASCII
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.