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 |
Hi , Can anyone give few examples of scenarios and there corresponding design in datastage..i am new to this tool...confused in design while my manager asking to design the job.. Please post the URL if there..so i can go through it.. Thanks in advance...
How to create a file using vi editor? 2)how to delete a file in vi editor? 3)How to connect the server datastage to unix? what r the command lines we r using? 4)30 jobs r runnig in unix i want to find out my job. how to do this? give me command?
data stores in which location while using data set stage as the target?
What are the stages in datastage?
How to clean the datastage repository?
Where do the datastage jobs get stored?
Which type of joins Merge stage can support?
Difference between ‘validated ok’ and ‘compiled’ in data stage?
how can i get 2nd highest salary in datastage?can u send me ,thanQ 2)if i had source has 2 records 1st record ie 1st column contains 1,2,3 and 2nd coulmn contains 10,10,10 i have to get target as 2nd columns as 20,30,40 how can i?
You enter values in a schema file for RCP and you also entered values in sequential file? which one will it take?
Can you explain engine tier in information server?
What are constraints and derivations?