col1
123
abc
234
def
jkl
768
opq
567
789

but i want two targetss target1 contains only numeric values
and target2 contains only alphabet values like

trg1
123
234
768
567
789

trg2
abc
def
jkl
opq

Answers were Sorted based on User's Feedback



col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / mike

in transformer stage, used Alpha function which
Checks if a string is alphabetic or not. if its return
value is 1 then alphabetic.

Is This Answer Correct ?    8 Yes 0 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / srinu

source->transormer->fileter1->transformer1
->filter2 ->tranformer2 joinstage ->target
in source:-
take i/p
transformer :
append new collumn and apply char function is alpha
filter1:
separate 0
filter2:
separate 1
transformer1
add another column @outrownum
transformer 2
add another column @outrownum
we join on @rownum column we will get
do perfect we get answer

Is This Answer Correct ?    1 Yes 0 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / vaka

In Transformer stage, used Num function which
Checks if a string is alphabetic or not. if its return
value is 1 then alphabetic,0 then Numeric after using
filter give the where clause=0 output link 0(trg1) and
where clause=1 output link 1(trg2)
trg1
123
234
768
567
789

trg2
abc
def
jkl
opq

Is This Answer Correct ?    2 Yes 1 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / eswar

this is not working plz explain clearly

Is This Answer Correct ?    0 Yes 0 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / vijaya

Hi Eswar,

It works nicely.try once again

Is This Answer Correct ?    0 Yes 0 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / shiva

In the transformer stage we have funcitons like alfa and
numaric so we go for that stage and write one condition if
alfa() then target1 and then go for constraints then put the
otherwise option then automatically numaric values will be
stored in anthor target table.

Is This Answer Correct ?    0 Yes 0 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / prasad

hi shiva and srinu, its not work properly, would u plz
explain how to write the condition.

Is This Answer Correct ?    0 Yes 0 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / kiran

By using transformer stage we can implement this
in transofrmaer functions like alfa funcation
and numric functions these functions are using to
implement this

Is This Answer Correct ?    0 Yes 0 No

col1 123 abc 234 def jkl 768 opq 567 789 but i want two targetss target1 contains only n..

Answer / srinu

at first generate row number column column 'number' then in transformer stage
create one column in constrains [ mod(number,2)=0] for this logic we get all even records mean all strings to one target
and for the second target kept a reject link all the numeric get a side

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Stage Interview Questions

i have a scenario with i/p as ID,salary with values 1,1000 2,2000 and 3,4000 i need an extra column in the o/p named amount with values 2000,4000 and NULL. how can i get it?

2 Answers   L&T,


table actions available in oracle connector?

0 Answers   CTS,


What is ibm datastage?

0 Answers  


what is the definitions for Datawarehose and Datamart?

4 Answers  


Different ways a project can be moved to production ?...example ….export-import and Version control.

0 Answers  






1)How will u implement SCD2 by using surrogate key. 2)What are the disadvantages with surrogate key. 3)How will you handle nulls in your project for the varchar, integer data types. 4)Can I use two fact tables in star schema. 5)3 jobs are running on the 2 nodes after I added one more node so can I compile those jobs to run on three nodes.

0 Answers  


I have a source table with column name CITY having 100 records, I want target table with column name start with 'A' and 'B',remaining columns as reject outputs. how can achieve this by data stage?please help me?????

5 Answers  


How to remove duplicates in transformer stage? in parallel mode

6 Answers   Syntel, TCS,


if we using two sources having same meta data and how to check the data in two sources is same or not? and if the data is not same i want to abort the job ?how we can do this?

0 Answers   Wipro,


on how many columns we can perform aggregation in the Aggregator stage?

3 Answers   Reliance,


What are constraints and derivations?

0 Answers  


On which Dimension Table you implemented SCD Type in your Project

0 Answers  


Categories