HomeForum
Welcome, Guest

Text file which contains header rows and detail rows
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Text file which contains header rows and detail rows

Text file which contains header rows and detail rows 1 year, 1 month ago #2280

  • Bob
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
I have a question.

I have a text file which contains header rows and detail rows, which can be identified by a record type code.
For each detail line I want to write out a row to SQL server, but I need it to include data from the associated header row.

Is that possible?

Bob

Re: Text file which contains header rows and detail rows 1 year, 1 month ago #2281

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
Can you email us a sample please

Peter

Re: Text file which contains header rows and detail rows 1 year, 1 month ago #2282

  • Bob
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
The first column is the record code. I want to write out data when the record code is a 6.
But when I write out a row to the SQL table, one column needs data from the prior record code 5. That data doesn’t exist on record code 6 row.

Bob

Re: Text file which contains header rows and detail rows 1 year, 1 month ago #2283

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
You can do it using Advanced ETL Processor (Visual Importer was not designed to do it)

Use previous value function or keep value plus calculations

Peter
  • Page:
  • 1
Time to create page: 0.16 seconds

Testimonials

We Process 3000 files daily, 24h x 365d

C Gandhi
Nesa-Canada

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top