Hi there,
I have a sequential file stage which I want to read data into 2 oracle tables.
I want table 1 to contain records which satisfy the pk (product#,vendor).
I'd like records missing pk data / or duplicates to get routed to table 2.
I've already got records with missing pk data going over to table 2, but do not know how to get duplicates to go there as well.
I'm not even sure where to begin with recognizing duplicates within DataStage.
Whats happening is when I load the data from a flat file into table 1 the process simply stops once a duplicate is encountered (product#,vendor#) - rather than continuing to process the rest of the file.
I'm handling missing data with an expression in the constraints header. So, before the pk can even be enforced by oracle, DataStage has already handled records with missing data by outputting them to table 2.
The problem is that I don't know how to create an expression in the constraints header (like the one that traps records with missing data) which can trap a duplicate record so that I can redirect it to table 2.
Any help will is greatly appreciated!
I have a sequential file stage which I want to read data into 2 oracle tables.
I want table 1 to contain records which satisfy the pk (product#,vendor).
I'd like records missing pk data / or duplicates to get routed to table 2.
I've already got records with missing pk data going over to table 2, but do not know how to get duplicates to go there as well.
I'm not even sure where to begin with recognizing duplicates within DataStage.
Whats happening is when I load the data from a flat file into table 1 the process simply stops once a duplicate is encountered (product#,vendor#) - rather than continuing to process the rest of the file.
I'm handling missing data with an expression in the constraints header. So, before the pk can even be enforced by oracle, DataStage has already handled records with missing data by outputting them to table 2.
The problem is that I don't know how to create an expression in the constraints header (like the one that traps records with missing data) which can trap a duplicate record so that I can redirect it to table 2.
Any help will is greatly appreciated!