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 » General Discussion » Control character conversion

Post new topic  Reply to topic
 Control character conversion « View previous topic :: View next topic » 
Author Message
fjcarretero
PostPosted: Thu Apr 01, 2004 4:57 am    Post subject: Control character conversion Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 01, 2004 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message
fjcarretero
PostPosted: Thu Apr 01, 2004 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 01, 2004 6:14 am    Post subject: Reply with quote

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
View user's profile Send private message
techno
PostPosted: Tue Apr 06, 2004 7:48 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed Apr 07, 2004 12:09 am    Post subject: Reply with quote

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
View user's profile Send private message
fjcarretero
PostPosted: Thu Apr 08, 2004 4:03 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 08, 2004 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Control character 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.