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

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?

0 Answers   Wipro,


1)Source file contains one record, I want 100 records in target file.

3 Answers  


What are the benefits of datastage?

0 Answers  


How one source columns or rows to be loaded in to two different tables?

0 Answers  


I have a file it contain 2 records like empname,company as Ram, Tcs and Ram, IBM. But i want empname, company1,company2 as Ram, TCS,IBM in the target. How?

6 Answers   Cap Gemini,






how to transfer file from one system to another system in unix? which cmd to be use?

5 Answers   Cap Gemini,


how to load meta data

2 Answers   IBM,


Is possible to create skid in dim,fact tables?

0 Answers   NTT Data,


WHAT ARE THE COMMON ERRORS IN DATA STAGE?

6 Answers   IBM, ME,


How can one find bugs in job sequence?

0 Answers  


In the source seq file have 2 columns, i.e input: col1,col2 1,1 2,rajesh 3,15000 4,2 5,suresh 6,16000 7,3 8,veeru 9,17000 I want in the output like: eno,ename,sal 1,rajesh,15000 2,suresh,16000 3,veeru,17000 any one answer this scenario

3 Answers  


What is audit table?

1 Answers  


Categories