Author |
Message
|
vickas |
Posted: Wed Apr 06, 2016 9:10 pm Post subject: IATA msgs breakline character |
|
|
Centurion
Joined: 18 Aug 2013 Posts: 126
|
Hie All ,
Did anyone work on the IATA standard messages ??
did any1 tried to parse it ??
I have a doubt if we have to use %LF; or %CR;%LF; as the line break in DFDL .
I do understand that the %LF; in/from linux sys is equivalent to %CR;%LF; in/from windows sys .
Now am not sure if the legacy system which sends msg to the ESB sends with LF; breakline character or CRLF breakline character .
Ideally ,I have used CRLF till date in the DFDL for new line characters but here my source system is a legacy system .
can someone tell me what to do here ? go with CRLF ? or LF ? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Apr 07, 2016 12:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
To answer your question we would have to know in which codepage the Text you receive is in... _________________ MQ & Broker admin |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Apr 07, 2016 12:45 am Post subject: Re: IATA msgs breakline character |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
vickas wrote: |
Hie All ,
Did anyone work on the IATA standard messages ??
did any1 tried to parse it ??
|
There are many different IATA Messages. Which ones are you talking about?
STX, AFTN or ??? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
timber |
Posted: Thu Apr 07, 2016 12:55 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
fjb_saper said:
Quote: |
To answer your question we would have to know in which codepage the Text you receive is in... |
Not necessarily. It is very important to know the codepage ( character encoding ) of the input data, but that would not necessarily tell us what style of line break was being used. |
|
Back to top |
|
 |
timber |
Posted: Thu Apr 07, 2016 12:57 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Quote: |
am not sure if the legacy system which sends msg to the ESB sends with LF; breakline character or CRLF breakline character |
You cannot ( and should not ) take a guess, or make assumptions. This should be specified somewhere. Can you ask the team that maintains the source application? |
|
Back to top |
|
 |
|