Reputation: 13
I have a source file which contains 10 records. It doesn't has any primary key. Requirement is to load first two records at first run into target table. And then delete those records from source file. Now the source file will have 8 records. In next run, first 2 records will get loaded into target followed by getting deleted from source file.. How can I achieve this in Informatica Power centre
Upvotes: 0
Views: 388
Reputation: 92
Source -> Sequence Generator -> Router(Group1 - Seq <=2 || Group 2 - Seq >2 )
You can now have two write components connected to each group of the router. 1st write component would be the target file and the other would be your source file where append if exists property is not enabled.
Upvotes: 0
Reputation: 3455
Use a sequence generator and a filter transformation to load only first two records. For deleting those records use scripts.
Upvotes: 0