Author |
Message
|
tanbsj |
Posted: Tue Jun 01, 2004 12:08 am Post subject: Ascii to Ebcdic conversion |
|
|
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 |
|
 |
PeterPotkay |
Posted: Tue Jun 01, 2004 4:46 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7723
|
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 |
|
 |
tanbsj |
Posted: Wed Jun 02, 2004 8:27 pm Post subject: |
|
|
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 |
|
 |
Venku |
Posted: Fri Jun 04, 2004 5:30 am Post subject: Conversion routine |
|
|
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 |
|
 |
tanbsj |
Posted: Tue Jun 08, 2004 2:23 am Post subject: |
|
|
Novice
Joined: 08 Jun 2003 Posts: 16
|
Hi Venku
Thank you so much.  |
|
Back to top |
|
 |
|