Author |
Message
|
adars1 |
Posted: Thu Jul 03, 2014 10:39 am Post subject: how to define unix, windows line delimiters in dfdl |
|
|
Apprentice
Joined: 13 Jun 2010 Posts: 39
|
Hi,
Iam trying to read both unix and windows line delimiters since file we are getting from windows and unix source. How can I define to accept both line deliters to read lines from file in DFDL. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jul 03, 2014 10:43 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What steps have you taken?
What problems have you experienced? |
|
Back to top |
|
 |
adars1 |
Posted: Thu Jul 03, 2014 11:12 am Post subject: used unix line delimiter LF |
|
|
Apprentice
Joined: 13 Jun 2010 Posts: 39
|
used unix line delimiter %LF; now I want to use OR condition to accept windows line delimiter also with dfdl line delimiter as %LF;/%CR;%LF;.
not getting compile error and when i process first line reading '/r/n' also as part of line. may be iam using wrong syntax. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Jul 03, 2014 11:16 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
There was a recent post (earlier this week) by Kimbert that described the format you need to use when using multiple terminators/.deliminators.
I suggest that you look at that. _________________ 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 |
|
 |
adars1 |
Posted: Thu Jul 03, 2014 11:47 am Post subject: how to define unix, windows line delimiters in dfdl |
|
|
Apprentice
Joined: 13 Jun 2010 Posts: 39
|
searched, did not find related to platform specific line delimiter to accept windows and unix line delimiters.
can you please post the link if you have it. |
|
Back to top |
|
 |
kimbert |
Posted: Thu Jul 03, 2014 12:24 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 03, 2014 3:13 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You could also replace it by %NL; which will change according to platform (%CR;%LF; or just %LF;)
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|