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?????

Answers were Sorted based on User's Feedback



I have a source table with column name CITY having 100 records, I want target table with column..

Answer / bg

Job design will be:
seq --- Tx ---- target.txt
|_____ reject.txt

IN transformer use below constraint for target.txt

Left(city,1)='A' or Left(city,1)='B'

Check the otherwise and send it to reject file.

Is This Answer Correct ?    22 Yes 0 No

I have a source table with column name CITY having 100 records, I want target table with column..

Answer / satish

Job design will be:
seq --- Tx ---- target.txt
------rejct.txt
IN transformer use below constraint for target.txt

Left(city,1)='A' or Left(city,1)='B'

Is This Answer Correct ?    5 Yes 0 No

I have a source table with column name CITY having 100 records, I want target table with column..

Answer / naresh

Hi,

sequential-----filter------ds
in filter stage 
where clause= city like 'A%' OR CITY LIKE 'B%'

Is This Answer Correct ?    3 Yes 0 No

I have a source table with column name CITY having 100 records, I want target table with column..

Answer / rajesh reganti

Job design will be:
seq --- Tx ---- target.txt
------rejct.txt
IN transformer use below constraint for target.txt

City[1,1] = 'A' or City[1,1] = 'B'

IN transformer use below constraint for reject.txt
otherwise

Is This Answer Correct ?    2 Yes 0 No

I have a source table with column name CITY having 100 records, I want target table with column..

Answer / koti

seq---tx----target1
|
|
target2

In Transformer use below constraint for target1.txt

UpCase(DSLink3.Field001) [1,1]= "A" Or UpCase(DSLink3.Field001) [1,1] = "B"

In Transformer use below constraint for target2.txt

tick on otherwise/log

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Data Stage Interview Questions

how many dimentions and fact tables used in your project and what are names of it?

3 Answers   Tech Mahindra,


Difference between server jobs & parallel jobs?

0 Answers  


What are the types of hashed files in data stage

0 Answers  


how will u design file watch jobs?

2 Answers  


how can we join one oracle & flat files ?

2 Answers   ME,






How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

0 Answers   Reliance,


How can we move a DATASTAGE JOB from Development to Testing environment with the help of a datastage job using unix commands.

5 Answers  


What is ds designer?

0 Answers  


how to create document in datastage?

1 Answers   Cap Gemini,


how to read 100 records at a time in source a) hw is it fr metadata Same and b) if metadata is nt same?

0 Answers   HCL,


How to convert RGB Value to Hexadecimal values in datastage?

0 Answers  


What is a datastage job?

0 Answers  


Categories