Author |
Message
|
csaunders |
Posted: Mon May 16, 2005 8:09 am Post subject: converting EBCDIC to ASCII |
|
|
Acolyte
Joined: 27 Mar 2003 Posts: 64 Location: Arlington, Va
|
Is there a way within MQ to convert EBCDIC to ASCII data? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 16, 2005 8:19 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes.
Specify the MQGMO_CONVERT option. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
csaunders |
Posted: Mon May 16, 2005 8:33 am Post subject: |
|
|
Acolyte
Joined: 27 Mar 2003 Posts: 64 Location: Arlington, Va
|
thats it? I dont have to tell it which type of data to convert? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 16, 2005 8:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You have to know and understand when and how data conversion occurs.
Fortunately for you, this is documented.
And discussed many many many times here. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
csaunders |
Posted: Mon May 16, 2005 8:55 am Post subject: |
|
|
Acolyte
Joined: 27 Mar 2003 Posts: 64 Location: Arlington, Va
|
im not a developer just a UNIX admin with a deadline, sorry if this question was considered trival and gone over many times. I have looked thru the documentation and I guess, is this done at the API level only, or is there a object attribute which can do this? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 16, 2005 8:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The best way for this to be done is for the sending application to set the format to MQFMT_STRING and the receiving application to specify the MQGMO_CONVERT option. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon May 16, 2005 11:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
csaunders wrote: |
thats it? I dont have to tell it which type of data to convert? |
For conversion there is only one field type acceptable: String.
So no pic s9(5) comp-3 stuff.
Enjoy  |
|
Back to top |
|
 |
|