Input file one has data as shown below
1
2
3
4
5
6
7
8
Input file two has data like
6
7
8
9
10
11
Design a data stage job which will provide me three output files as shown below:
Output 1
6
7
8
Output 2
1
2
3
4
5
Output 3
9
10
11
Let me know your answers
Answers were Sorted based on User's Feedback
seq file1 and file2 as input to change capture stage and then a switch stage with case=0,1,2 (on change code). Case=0 will give 6,7,8. Case=1 will give 1,2,3,4,5 and case=2 will give you 9,10,11
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / suresh
Actually we observe 1st output has common numbers of two inputs,remaining outputs have indiaviduals wrt to input data.
Suppose we validate the application using equivalence partitioning using this approach.
Same as we validate boundary value wrt two inputs can approach this one.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / pavani
by using join type=full outer.we have to get output has 2 columns. 1st_column values are first inputs and remaining nulls,2_column values are second input and remaining are nulls.
then by using transformer write a constraint
1.output----->1st_column=2_column;
2.output----->2_column=null or'';(depending on input data)
3.output----->1st_column=null or'';(depending on data)
| Is This Answer Correct ? | 0 Yes | 2 No |
Use input file1 as after file and input file2 as before file to a change capture stage. Change capture stage generates change code 0 for 6,7,8 & 1 for 1,2,3,4,5 and 2 for 9,10,11. Use a filter/switch stage after change capture stage to write records to output file1 when change code is 0, to output file2 when change code is 1 and to output file3 when change code is 2.
| Is This Answer Correct ? | 0 Yes | 2 No |
in source is like seq file in date column have dd-mm-yy dddd-mmmm-yyyy mm-dd-yy yy-dd-mm yy-mm-dd i want to display only yy-dd-mm date formats only in tgt?
hi i am madan, in real time data stage who is the source provide? and how to recevied in developer? Pls send me answer
In a table 100 records are there after 50records job is aborted how can u insert all records in target table.
project Steps,hits, Project level HArd things,Solved methods?
Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?
where we use column generator stage in real time scenario?
Whats difference betweeen operational data stage (ods) and data warehouse?
how can we send even and odd records from a sequential file to two different targets
10 Answers IBM, iGate, TCS,
What is the importance of the exception activity in datastage?
What are the difference types of stages?
1.new record it will insert but changes of natural key is not present in taget i want to update (here key is composite natural key )can any one help this to explan how to do
I have a few records all are same structures data, I want to store data in multiple targets how?