Lost Password?
No account yet? Register
Increase font size Default font size Decrease font size Narrow screen resolution Wide screen resolution Auto adjust screen size default color red color blue color yellow color orange color
Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Dynamic target file names in Advanced ETL Pro (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Dynamic target file names in Advanced ETL Pro
#741
Steve Vaughn (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Dynamic target file names in Advanced ETL Pro 3 Months, 3 Weeks ago Karma: 0  
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!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#742
admin (Admin)
Admin
Posts: 147
graph
User Online Now Click here to see the profile of this user
Re:Dynamic target file names in Advanced ETL Pro 3 Months, 1 Week ago Karma: 0  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#743
admin (Admin)
Admin
Posts: 147
graph
User Online Now Click here to see the profile of this user
Re:Dynamic target file names in Advanced ETL Pro 3 Months, 1 Week ago Karma: 0  
Steve

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

Mike,
DB Software Laboratory
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#744
Steve Vaughn (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Dynamic target file names in Advanced ETL Pro 3 Months, 1 Week ago Karma: 0  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoard

Testimonials

I just transferred 10,000,000 million records from the main SQL Anywhere database over the network into a Postgres database without a hitch.

Thank you
Thank you
Thank you

George…

!!!!! You guys rock!!!!!!!!
 

Free Newsletter

Please provide your Name and Email address so that we can tell you about latest releases, new features and free offers.






b.150.100.16777215.0..Screenshots.AdvancedETLEnt.Advanced_ETL_Processor_Ent.jpg
DB Software Laboratory - Intel Software PartnerDB Software Laboratory - My SQL Ready Partner
DB Software Laboratory Embacadero Technology Partner