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 conversion

Post new topic  Reply to topic
 Ascii to Ebcdic conversion « View previous topic :: View next topic » 
Author Message
tanbsj
PostPosted: Tue Jun 01, 2004 12:08 am    Post subject: Ascii to Ebcdic conversion Reply with quote

Novice

Joined: 08 Jun 2003
Posts: 16

Hi all,

A message is send from a tandem to vse/esa, but then
the data are not converted to ebcdic.

The receiving program has already set the MQGMO_CONVERT.
The only problem is that the sending side do not have the format
set to MQSTRbbb.

Below show the header from the sending side

StructID: "MD " Version : "00000001" Report : "00000000"
MsgType : "00000008" Expiry : "-00000001" Feedback: "00000000"
Encoding: "00000001" CCSetId : "00000819" Format : " "
Priority: "00000000" Persist.: "00000001" PutApplT: "00000013"
MsgId : "544B30343035313930303034373430303020202020202020"
CorrelId: "303030303159303030312020202020202020202020202020"

The sending side are not going to do any changes to their sending program, is there any other way to convert from ascii to ebcdic.

Please advise.

Thank you in advance
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Tue Jun 01, 2004 4:46 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Your recieving program will have to code a custom conversion.

Or you can stick an intermediate app in between your two where the only thing it does it change the MQMD header to contain "MQSTRbbb". Then your real receiving app can use the MQGET with convert.

Or you tell the sending side to stop making life complicated and just code MQSTRbbb for MQ messages that contain nothing but character data. (I am assuming these messages are in fact nothing but character data.)
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
tanbsj
PostPosted: Wed Jun 02, 2004 8:27 pm    Post subject: Reply with quote

Novice

Joined: 08 Jun 2003
Posts: 16

Hi PeterPotkay

Thank you so much for your reply. Appreciate it very much.

We will try to convert it in our application layer.

Back to top
View user's profile Send private message Send e-mail
Venku
PostPosted: Fri Jun 04, 2004 5:30 am    Post subject: Conversion routine Reply with quote

Novice

Joined: 02 Jun 2004
Posts: 10
Location: Newyork

You can use the conversion table to write a routine to convert EBCDIC to ASCII and vice-versa. MQSeries will perform channel conversion only for those messages which conatins MQSTR as the format field. During these cases you need to turn off the channel conversion. And perform the conversion through your application. I guess if the client is using some Integration servers like IBM’s Web MQSI or NEON’s e-biz Integrator they normally add a rules and formatter header and those messages normally will contain MQRFH in the format field. We at our installation created a routine to perform the character conversion.
_________________
Venku
____________________
MQ, CICS & DB2 Consultant
Back to top
View user's profile Send private message
tanbsj
PostPosted: Tue Jun 08, 2004 2:23 am    Post subject: Reply with quote

Novice

Joined: 08 Jun 2003
Posts: 16

Hi Venku

Thank you so much.
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 » IBM MQ API Support » Ascii to Ebcdic conversion
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.