Skip to Content
author's profile photo Former Member
Former Member

Is it possible to split non-flat input file into header/lines using Transform?

Hello colleagues,

I need to load data from non-flat file containing "Object" Header and Lines into corresponding HANA DB tables. Could I do it using Transform? Which Transform type should be used?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2013 at 11:50 AM


    This is possible using the file format, however it depends on your exact file structure.

    The ignore row markers setting can be used to filter for only headers or lines (assuming your structure has an indicator). So, for easy consumption of the 2 record types, 2 file formats would be defined.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Well spotted - yes the file would be read twice using this mechanism (although it could be in parallel). If you only want to read the file once, define a file format that covers both the header and line records (a big string perhaps), and then use the case to split the record types and query tranforms to convert to the correct record structure for each type.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.