Author |
Message
|
fjcarretero |
Posted: Thu Apr 01, 2004 4:57 am Post subject: Control character conversion |
|
|
Voyager
Joined: 13 Oct 2003 Posts: 88
|
Hi all,
I have the following problem. I need to send files from a Windows box to a Solaris one. The files contains windows carriage return characters (CR/LF). I need the file to arrive with the Unix carriage return ones (LF).
Is this done automatically by MQSeries with the right codepages?
TIA
Cheers
Felipe |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 01, 2004 6:06 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's done automatically by MQSeries if you specify the Convert option when you execute your GET. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjcarretero |
Posted: Thu Apr 01, 2004 6:10 am Post subject: |
|
|
Voyager
Joined: 13 Oct 2003 Posts: 88
|
Thanks Jeff,
Do you know with codepages (CCSID) should I use for this to happen?
Cheers
Felipe |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 01, 2004 6:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
As long as the two CCSIDs in question have supported conversion between them, it does not matter which two are being used.
If you are specifying Convert on the GET, and the data is not being converted, then most likely your messages do not have a Format of MQFMT_STRING.
There has been a lot of discussion here about data conversion with MQSeries. Doing a search may save you a lot of time, rather than waiting for specific questions to be answered. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
techno |
Posted: Tue Apr 06, 2004 7:48 am Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
Felipe
How are you doing the file transfer? Are you reading the whole file and sending it across or using some other methodology? |
|
Back to top |
|
 |
zpat |
Posted: Wed Apr 07, 2004 12:09 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Does MQ codepage conversion really remove characters and shorten the data from CR/LF to LF?
File transfer (FTP) will do that though. |
|
Back to top |
|
 |
fjcarretero |
Posted: Thu Apr 08, 2004 4:03 am Post subject: |
|
|
Voyager
Joined: 13 Oct 2003 Posts: 88
|
Techno,
Yes, I am reading the entire file an send it to a queue. On the other end there is another adapter that is doing the opposite process.
The client wants to keep things as close as it had it before with FTP.
Zpat, I was wondering the same. I thought mq conversions where done byte by byte so the length was never changed.
At the moment I have not been able to test it because the Unix machine is not available.
Many thanks.
Felipe |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 08, 2004 4:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
fjcarretero wrote: |
Zpat, I was wondering the same. I thought mq conversions where done byte by byte so the length was never changed. |
Doesn't it add characters when converting from EBCDIC line endings to Window line endings? I thought it did, converting the one character to <CR><LF>.
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|