HomeForum
Welcome, Guest

Dynamic target file names in Advanced ETL Pro
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Dynamic target file names in Advanced ETL Pro

Dynamic target file names in Advanced ETL Pro 2 years, 2 months ago #741

Hi,

I have a scenario where I am receiving a pipe delimited file. For purposes of this example, I am naming the file ABCTEST.txt. The file contains header records that are indicated by a '00' value in the first column. The detail records are indicated by a '01' value in the first column. The footer record is indicated by a '02' value in the first column.

The detail records will be loaded to a staging table and then processed via a stored procedure. Ultimately, these data records will process successfully or they will become error records. I am required to create a file containing the good records and a file containing the error records.

The file containing the good records must contain the header records from the original file (ABCTEST.txt) and the detail records that processed successfully. The file name for the good records must contain the original file name as part of the new file name, i.e., ABCTEST.good

The file containing the error records must also contain the header records from the original file (ABCTEST.txt) and the detail records that became error records. The file name for the error records must contain the original file name as part of the new file name, i.e., ABCTEST.err

We understand how we can load the detail records to the staging table, retrieve the good records, and retrieve the error records. We are having a hard time trying to figure out how we can create the separate files for the good records and the records in error.

My first thought was to create a transformation where I am reading the original source file, filtering on the value for the header records (’01) and writing to a text file. This works well. It creates a file with just the header records. We would then append the detail records to this file after the processing of the data. The only problem I am having is trying to maintain the original file name as part of the new .txt file I am creating/writing to via the writer in my transformation.

Is there a way to do this or do you have any suggestions

Thanks for your help!

Re:Dynamic target file names in Advanced ETL Pro 2 years, 2 months ago #742

  • admin
  • OFFLINE
  • Moderator
  • Posts: 1934
  • Karma: 11
We would need to change our ETL software to do it.
It might take up to 10 days.
I will let you know when it is ready

Mike,
DB Software Laboratory

Re:Dynamic target file names in Advanced ETL Pro 2 years, 2 months ago #743

  • admin
  • OFFLINE
  • Moderator
  • Posts: 1934
  • Karma: 11
Steve

Please give the latest version a try please and let us know the outcome

Mike,
DB Software Laboratory

Re:Dynamic target file names in Advanced ETL Pro 2 years, 2 months ago #744

It works when using a specific file name as well as when using a mask to read my source file.

Thanks for your support on this!!!!!!

Steve V
  • Page:
  • 1
Time to create page: 0.18 seconds

Testimonials

My boss told me to keep looking for a more expensive application, assuming Visual Importer ETL couldn't be very good because the price was just too low.  After testing several imports I convinced him that Visual Importer did everything we want so there was no need to pay for a more expensive solution.

Ron Bradshaw,
IT Reporting Manager,
ConAgra Foods / Lamb Weston

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