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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Triggers,VIEW,Procedures

787


what are the errors,warnings in datastage

2136


How do you start developing a datastage project?

653


Give an idea of system variables.

575


Can you explain how could anyone drop the index before loading the data in target in datastage?

880






What are the types of containers in datastage?

696


If you want to use the same piece of code in different jobs, how will you achieve it?

625


whom do you report?

1495


What are sequencers?

606


What are the benefits of datastage?

716


what is stage is used for below Input columns: dept|mgr|employee|salary Output columns: mgr|count of employee per mgr|avg salary per dept note: each dept has one mgr and each mgr has many employees

653


how can we create rank using datastage?what is the meaning of rank?

8153


What is the different type of jobs in datastage?

561


Define Routines and their types?

615


What is staging variable?

613