Author |
Message
|
MJ |
Posted: Sun Jul 11, 2010 8:45 pm Post subject: MT950 SWIFT Format |
|
|
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 |
|
 |
zpat |
Posted: Sun Jul 11, 2010 10:24 pm Post subject: |
|
|
 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 |
|
 |
MJ |
Posted: Sun Jul 11, 2010 10:46 pm Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Mon Jul 12, 2010 5:22 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Sun Jul 18, 2010 8:38 am Post subject: Re: MT950 SWIFT Format |
|
|
 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 |
|
 |
zpat |
Posted: Sun Jul 18, 2010 10:34 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Mon Jul 19, 2010 7:56 am Post subject: |
|
|
 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 |
|
 |
|