Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Whats the difference between informatica powercenter server, repositoryserver and repository?

1178


Can one use mapping parameter or variables created in one mapping into any other reusable transformation?

1087


Differentiate between a repository server and a powerhouse?

1121


suppose in my source flatfile i have 10000 records in that some of master table records missed table records missed then what will u do

2122


Enlist some properties of sessions.

1082


What are the modules in Power Center

1681


What is session task and command task?

1303


WHAT IS EDM?WHAT IS THE USE IN INFORMATICA? chandumba2005@gmai.com

1923


how tokens will generate?

2208


What are connected or unconnected transformations?

1126


how to load rows into fact table in data warehouse

1190


How we can create indexes after completing the load process?

1161


difference between informatica 8.1.1 and 8.6

3678


Informatica settings are available in which file?

992


permutations of mapplet

2512