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 » MT950 SWIFT Format

Post new topic  Reply to topic
 MT950 SWIFT Format « View previous topic :: View next topic » 
Author Message
MJ
PostPosted: Sun Jul 11, 2010 8:45 pm    Post subject: MT950 SWIFT Format Reply with quote

Newbie

Joined: 11 Jul 2010
Posts: 3

Hi,

I am trying to put a MT950 message manually in MQ Tool. The tool is administered by a colleague of mine. I have manually created an I message in SAA and got an O in return. I ahev tried to get a file in rje format for this message and then provide a copy of same to the MQ Admin. However, the user at other end is getting a LF instead of CRLF. Please let me know if this procedure I am doing is correct.
Back to top
View user's profile Send private message
zpat
PostPosted: Sun Jul 11, 2010 10:24 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

To convert LF to CRLF you can place the file on a Unix host the FTP it to a Windows host (ASCII mode).

This is not a MQ related question. It is a text file question.
Back to top
View user's profile Send private message
MJ
PostPosted: Sun Jul 11, 2010 10:46 pm    Post subject: Reply with quote

Newbie

Joined: 11 Jul 2010
Posts: 3

As I said, its not completely related to MQ. The problem is that its a SWIFT message and the outcome is not handled manually.. Hence, before I go further, I needed to know if there is any parameter setting at MQ side, which can prevent the CRLF to be checked.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Jul 12, 2010 5:22 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

The application data component of a message is the responsibility of the application program. WMQ has limited data conversion capabilities - as documented in the APR manual.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sun Jul 18, 2010 8:38 am    Post subject: Re: MT950 SWIFT Format Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

MJ wrote:
However, the user at other end is getting a LF instead of CRLF. Please let me know if this procedure I am doing is correct.

Silly rabbit, tricks are for kids.

Tell your Java programmer to use the correct escape sequence.

LF is '\n'
CRLF is '\r\n'

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
zpat
PostPosted: Sun Jul 18, 2010 10:34 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

It's not about programming the CRLF.

Swift will not accept messages in the wrong format, nor will it produce messages in the wrong format.

So it must have CRLF in it for SAA to work. What happens later is nothing that MQ can affect.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Jul 19, 2010 7:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

MJ wrote:
I am trying to put a MT950 message manually in MQ Tool.

zpat wrote:
It's not about programming the CRLF.

zpat, I'm not sure who that comment is directed at but the issue is about the 'MQ Tool' - hence programming. His 'MQ Tool' is not inserting the appropriate CRLF. Hence, his 'MQ Tool' needs to be updated. i.e. The program ('MQ Tool') needs to insert a CRLF in the message data rather than LF. Therefore, it is a programming mistake.

Or if the 'MQ Tool' is simply inserting a file as a message to a queue then have the 'MQ Tool' convert LF character to CRLF before it puts the message to the queue.

Or if it is a file and since you appear to be on Unix/Linux, run a 'tr' command over the file to translate '\n' to '\r\n'. Here's a good arcticle on handling LF <--> CRLF issue:
http://www.ibm.com/developerworks/linux/library/l-tiptex5.html

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MT950 SWIFT Format
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.