HOW U CAN ABORT THE JOB IF THE DATA IS DUPLICATE?



HOW U CAN ABORT THE JOB IF THE DATA IS DUPLICATE?..

Answer / subhash

SRC--->SORT--->TFM--->TGT

In the Sort Stage, mention the Sort Keys and Set
CreateKeyChangeColumn to TRUE. for each 1st of Key column,
value of the KeyChange column is '1' and for the duplicate
columns, value is '0'.
In the TFM Constraints, give constraint as 'KeyChange=0' and
set '1' for 'Abort After Rows' then the job will abort for 1st
duplicate record.

Is This Answer Correct ?    14 Yes 0 No

Post New Answer

More Data Stage Interview Questions

Input Data is: Emp_Id, EmpInd 100, 0 100, 0 100, 0 101, 1 101, 1 102, 0 102, 0 102, 1 103, 1 103, 1 I want Output 100, 0 100, 0 100, 0 101, 1 101, 1 Means Indicator should either all ZEROs or all ONEs per EmpId. Impliment this using SQL and DataStage both.

6 Answers   IBM,


how to run jon in unix back round process what is command use in runing a job?

2 Answers   HSBC,


what will happen if we allow duplicates in datastage lookup abort drop record 1st value of duplicate record none

1 Answers   Wipro,


My source having following data as below, AB1 Aim2 Abnv5 1An8bx and my question is i need the Datastage job the following as in my target 000AB1 00Aim2 0Abnv5 1An8bx Please help me to achive this.

6 Answers   Wipro,


Give an idea of system variables.

0 Answers  






What's the Main Function of the Staging area in DWH

3 Answers   Oracle,


Hi Can any one help regarding below INPUT NAME LOC Ram hyd Ram ban Raj chn Raj Pun Sam del OUPUT NAME LOC Ram Hyd ban Raj chn pun sam del

3 Answers   HCL,


What is difference between join, merge and lookup stage?

0 Answers  


how to achieve this output ? Two Input columns(ID & Name) - ID | Name 1 | Jack 1 | Kara In output there should be only 1 column which will be populated as - 1,Jack 1,Kara

0 Answers  


Name the different sorting methods in datastage.

0 Answers  


How do you generate sequence number in datastage?

0 Answers  


What are datastage sequences?

0 Answers  


Categories