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
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 |
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 |
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
To provide support for Mainframes source data,which files r used as a COBOL files
What is the difference between Active and Passive transformation?
what is the use of Data Mart?
what is the process we used in joiner transformation,there is no matching column in sources?
What is the function of union transformation?
Which files are created during the session rums by informatics server?
How do you do error handling in Informatica?
How an expression transformation differs from aggregator transformation?
What is an Integration service in Informatica?
What does command task mean?
What is operational data source (ODS)?