I have 4 columns in a table say, name ,address, salary and
city. So based on distinct city names, i need to combine
the other data and send it to a flat file. Distinct city
names can be 4 or 5 or 6. So it has to dynamically generate
flat files(4 or 5 or 6) corresponding to the city names.

Answers were Sorted based on User's Feedback



I have 4 columns in a table say, name ,address, salary and city. So based on distinct city names, ..

Answer / ankit kansal

steps:-
1)Bring source and target into a mapping
*remember to check the target file name option in target analyzer window for that target.
2)sort your data on the basis of city.
3)In expression transformation
o_flag-----o---IIF(prev_city=city,0,1)
prev_city--v---city
o_file_name--o--city
*remember the order must be same
4)Take Transaction Control
IIF(o_flag=1,TC_COMMIT_BEFORE,TC_CONTINUE_TRANSACTION)


i hope it helped you.

http://deepinopensource.blogspot.in/

Is This Answer Correct ?    2 Yes 0 No

I have 4 columns in a table say, name ,address, salary and city. So based on distinct city names, ..

Answer / hari

transaction control transformation will do this logic
dymanically.
using shell programming we can split those files using post
command task

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Informatica Interview Questions

i have f;latfile source. i have two targets t1,t2. i want to load the odd no.of records into t1 and even no.of recordds into t2. what is the procedure and whar t/r's are involved and what is the mapping flow

4 Answers   Wipro,


To provide support for Mainframes source data,which files r used as a COBOL files

1 Answers  


What is the difference between Active and Passive transformation?

0 Answers   Informatica,


what is the use of Data Mart?

5 Answers   IBM,


what is the process we used in joiner transformation,there is no matching column in sources?

2 Answers  






What is the function of union transformation?

0 Answers  


Which files are created during the session rums by informatics server?

0 Answers  


How do you do error handling in Informatica?

1 Answers  


How an expression transformation differs from aggregator transformation?

0 Answers  


What is an Integration service in Informatica?

0 Answers  


What does command task mean?

0 Answers  


What is operational data source (ODS)?

7 Answers  


Categories