i have data like
sam
ram
sam
raj
ram
I want two targets
trgt1
ram
sam
trgt2
raj
how can i do this in datastage?
Answers were Sorted based on User's Feedback
1) If SRC is either Oracle or Seq File
SRC--->AGG---->fILTER---->TGT1
...................|
...................|
..................TGT2
the main data is:
sam
ram
sam
raj
ram
from aggregator stage, the output is:
sam,2
ram,2
raj,1
Then specify the count<>1 in the Filter for TGT1 then you get:
ram
sam
in another link for TGT2, give count=1. THEN YOU GET:
raj
2) If SRC is DataBase,
Orcl Conector----->Filter---->TGT1
.......................|
.......................|
......................TGT2
SELECT NAME, COUNT(NAME)
FROM EABLE_NAME
GROUP BY (NAME)
from the Above Query, the output is:
sam,2
ram,2
raj,1
Then specify the count<>1 in the Filter for TGT1 then you get:
ram
sam
in another link for TGT2, give count=1. THEN YOU GET:
raj
| Is This Answer Correct ? | 6 Yes | 1 No |
Small correction Ramu, Instead of Transformer stage use Filter stage it will give performance gain.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / cva
take seqfile for loading src then take filter stage and take
two outputs from filter . write condition in filter stage
use where clause=col like 'sam' and col like 'ram' for one
trg and for second also like that.
| Is This Answer Correct ? | 1 Yes | 6 No |
what is parameterset?
ename like ibm,tcs,hcl need display those records only how?
What is datastage engine?
Is possible to create skid in dim,fact tables?
What are the main features of datastage?
1.When did 8.1 parallel came into existence? 2.What is the difference between 7.5 and 8.1?
How to generate surrogate key without using surrogate key stage?
how to get sum of sal based on dept_no and then sum of all sal irrespective of dept_no in same sql. output:- 10, 200(sum of sal for dept_no 10), 5000(sum of all sal)
Source have 1000 records and it can have three nodes ok but i want how many records are executed on each node?
how to call routines in stages?
Why do you need stage variables?
How to convert table data into xml file using xml output stage? please explain step by step;