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?
Answer Posted / subhash
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 |
Post New Answer View All Answers
If you want to use the same piece of code in different jobs, how will you achieve it?
How one source columns or rows to be loaded in to two different tables?
Can you highlight the main features of ibm infosphere information server?
How to RD using transformer?
What are the difference types of stages?
8000 jobs r there i given commit, suddenly job will abort? what happens? 2)diff b/t transformer stage & filter stage? 3)how to load the data in the source?
What is the difference between datastage and informatica?
what is the difference between == and eq in UNIX shell scripting?
What is a ds designer?
what is ds administrator used for?
How to read the length of word in unix?
What are the steps needed to create a simple basic datastage job?
Can you explain engine tier in information server?
What is the difference between informatica and datastage?
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