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 » WebSphere Message Broker (ACE) Support » how to define unix, windows line delimiters in dfdl

Post new topic  Reply to topic
 how to define unix, windows line delimiters in dfdl « View previous topic :: View next topic » 
Author Message
adars1
PostPosted: Thu Jul 03, 2014 10:39 am    Post subject: how to define unix, windows line delimiters in dfdl Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Jul 03, 2014 10:43 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What steps have you taken?

What problems have you experienced?
Back to top
View user's profile Send private message
adars1
PostPosted: Thu Jul 03, 2014 11:12 am    Post subject: used unix line delimiter LF Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu Jul 03, 2014 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message
adars1
PostPosted: Thu Jul 03, 2014 11:47 am    Post subject: how to define unix, windows line delimiters in dfdl Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Thu Jul 03, 2014 12:24 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The post that smdavies99 is referring to is here: http://www.mqseries.net/phpBB2/viewtopic.php?t=67810
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 03, 2014 3:13 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how to define unix, windows line delimiters in dfdl
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.