Topic
  • 1 reply
  • Latest Post - ‏2016-11-03T14:45:33Z by ANk$
ANk$
ANk$
10 Posts

Pinned topic DFDL Query

‏2016-11-03T11:18:51Z | dfdl

I have to create 2 different files using same DFDL. the difference would be in the number of delimiters in the output file.

 

For eg 

File A would be having data as below

A|B|1|2

X|Y|3|4

and File B would be having data as below

A|B

X|Y

 

I tried using SuppressAtEndLax property but it didn't worked, please suggest some solution so that same DFDL can created both files as above.

  • ANk$
    ANk$
    10 Posts

    Re: DFDL Query

    ‏2016-11-03T14:45:33Z  

    There is one more requirement of having the below data in one file

     

    A|B|C|D
    X|Y|Z|A

    1|2

    3|4

    E|F|G|H

     

    I have used the DFDL and the output is somehow different and pipes are coming for all the data

     

    A|B|C|D
    X|Y|Z|A

    1|2||

    3|4||

    E|F|G|H

     

    Please advise the solution if any property needs to be changed to handle this behaviour.