source is a flat file

empname, empno, sal
ram, 101, 1,000
sam, 102, 2,000

ques: my target needs the data to be loaded as sal -1000 and
2000 excluding commas

target

empname, empno, sal
ram, 101, 1000
sam, 102, 2000

how to implement this?

Answers were Sorted based on User's Feedback



source is a flat file empname, empno, sal ram, 101, 1,000 sam, 102, 2,000 ques: my target n..

Answer / sunil

Use the replace function in expression and replace',' as null

REPLACE(1,sal,',null)..
It should work

Is This Answer Correct ?    5 Yes 0 No

source is a flat file empname, empno, sal ram, 101, 1,000 sam, 102, 2,000 ques: my target n..

Answer / hardik

We can simple concatenate 3rd and 4th Row i.e 1 and 000 and
put that concatenated output port in target.

Is This Answer Correct ?    3 Yes 2 No

source is a flat file empname, empno, sal ram, 101, 1,000 sam, 102, 2,000 ques: my target n..

Answer / varun s

OPEN THE SOURCE FILE-->EDIT-->REPLACE ALL , to NULL.
USE FIXED WITH LENGTH WHILE IMPORTING TO SOURCE AND .....
HOPE IT WILL HELP

Is This Answer Correct ?    2 Yes 3 No

source is a flat file empname, empno, sal ram, 101, 1,000 sam, 102, 2,000 ques: my target n..

Answer / magnil

how would it be possible if value is other than ,000?

Is This Answer Correct ?    0 Yes 3 No

source is a flat file empname, empno, sal ram, 101, 1,000 sam, 102, 2,000 ques: my target n..

Answer / ramkrishna

open the original source flat file then from edit menu
select replace then enter values as find(,000) and replace
with (000)
then save the source file with other name then continue the
process as the flatfile

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Informatica Interview Questions

What are the differences between a connected lookup and unconnected lookup?

0 Answers  


i have flatfile source. i want to load the maximum salary of each deptno into target. what isthe mapping flow

3 Answers   Wipro,


create a mapping to retrieve the employees who are getting salary greater than average salary?

4 Answers   TCS,


Give one example for each of conditional aggregation, non-aggregate expression, and nested aggregation?

0 Answers  


Difference between task flow and linear task flow

0 Answers  






In target table how to display the system time

1 Answers  


On a day, I load 10 rows in my target and on next day if I get 10 more rows to be added to my target out of which 5 are updated rows how can I send them to target? How can I insert and update the record?

6 Answers  


In which conditions we can not use joiner transformation (Limitaions of joiner transformation) ?

2 Answers  


Can anyone tell me, when a flat file contains different kinds of delimeters available for each line ( For Ex: First line contains [,*&#$] and second line contains [%@$#%^]. Like that all records having different kinds of delimeters. How can we implement this kind of flat file in informatica?

2 Answers  


i have two tables,table 1 having 2 columns and 3 rows,table2 having 3 columns and 2 rows.what is the output if i do left outerjoin,full outer join,right outer join?

2 Answers   IBM, Polaris,


What is transformation?

0 Answers  


Is it passive or active when check and uncheck the box of DISTINCT in Sorter transformation? why?

6 Answers   iFlex, Morgan Stanley,


Categories