how to get flatfile containg 10 records half records one
target another half another target

Answer Posted / gazulas

what if the number 10 changes??

use a sql transfermation and get the record count or use an agg get rec count and pass it into record_count. use seq gen and populate the numbers. then use a router and write condition seq no <= record_count/2 -- target1

default to target 2.

this will work even ur records changes to 100 or 25o or 40000..etc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create the list file having millions of flat files while indirect loading in informatica? In indirect file loading, suppose we have less no.of flat files then we can enter files names manually in list file creation. If millions of files are there, how can we enter the flat file names in list file?

1630


What is the difference between router and filter?

722


How to create Target definition for flat files?

868


What are active and passive transformations?

724


Differentiate between a database and data warehouse?

752






if i hv 6 table as source table but can i make 12 as a dim table and 6 as fact table belongs to that src table.

1879


Explain how many types of dimensions are available in informatica?

681


Do you find any difficulty while working with flat files as source and target?

769


Tell me about Propagate functions in informatica

621


What are the data movement modes in informatica?

793


What are the new features of informatica 9.x in developer level?

645


How to display session logs based upon particular dates. If I want to display session logs for 1 week from a particular date how can I do it without using unix. ?

1691


Hi, I saw one mapping implemented by my seniors . In Expression transformation they implemented following logic. That is iif(is_date(in_UC_DATINV,'YYYYMMDD'),to_date(in_UC_DATINV,'Y YYYMMDD'),'Inventory Date is either invalid or null') Inventory_Date is validated only for is_date() But not validated for notisnull() . But error says “ either invalid or null “ why? Whether is_date() also check for not isnull() ? or in this logic something is different ? Please answer me . Advance thanks

1504


permutations of mapplet

2138


What do you mean by DTM and Load manager and what is difference between load manager and load balancer?

725