i have source like
deptno,sal
1,2000
2,3000
3,4000
1,2300
4,5000
5,1100
i want target like
target1
deptno,sal
1,2000
3,4000
4,5000
target2
2,3000
1,2300
5,1100
with out using transformerstage
Answers were Sorted based on User's Feedback
Answer / sarath
first generate the surrogate key (eg rownum). then using the filter stage give the condition where= (rownum%2=0) to one dataset and rejected to another dataset.
I think this will work.
correct me if im wrong.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / rafi
by using round robin partition with two nodes we can get the solution.
| Is This Answer Correct ? | 8 Yes | 4 No |
1)First go to Seq File-->Columns-->Add RowNum column and
2)then go to Properties-->select Options-->select Row Number Column=RowNum (Drop down list select RowNum column)
we will get the sequence Numbers.
first do the link sort for Sal in transformer stage.
and in Transformer stage go to
Constraint: Mod(dslink1.RowNum,2)=0 ---o/p1
and then select otherwise check box or write Mod(dslink1.RowNum,2)=1 --->0/p2
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / saran
using filter stage we can get output
in filter stage in where clause write condition like this
where sal in(2000,4000,5000) this to one dataset link
and specify reject link to another dataset
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / thippareddy.p
From source copy the data into sets using copy or peak
stage then for each copy stage use remove duplicate stage
with duplicate to retain first and last you will get
desired output.....
Hope thios will help u.......
| Is This Answer Correct ? | 1 Yes | 16 No |
Can you filter data in hashed file?
Difference between the Sequence and Sequencer in DS?
What are the main features of datastage?
1)what is the size of Fact table and dimension table? 2)how to find the size of Fact table and dimension table? 3)how to implement the surrogate key in transform stage? 4)write the configuration file path? 5)how many types of datasets explain? 6)diff b/w developed projects and migration projects? 7)how to delete the header and footer file of the sequencer file? 8)how can u call the parameters in DS in unix environment? 9) how much data ur getting daily ? 10)
How u implement the slowly changing dimensions if my source table is consisting of cid,cname,add,phno,email but i need to capture the changes for first three columns how u implement?
Name the different sorting methods in datastage.
What all the types of jobs you developed?
How can we run same job in 1 day 2 times
Hi I have scenario like this s/r table T/r table ename,sal empno,ename,sal vijay,2000 1 , vijay, 2000 kumar,3000 2 ,kumar , 3000 ravi ,4000 3 ,ravi , 4000 How can i get target table like that without using Transformer stage?
if a column contains data like ram,rakesh,madhan,suraj,pradeep,bhaskar then I want to place names separated by commas in another columns how can we do?
if 3 table having different columes. like first table having 4 columns , second table having 3 columns and third table having 2 columns then how to capture the data by using funnel stage in parallel jobs...srinu.thadi
17 Answers IBM, TCS,
what is initial load and incremental load