hi all, i have 1 flat file having 10 rows. like:-

id name amt
100 a 100
200 b 200
100 n 300
400 p 3000
100 a 100
600 x 6000

Now i want to load half of this data into one flat file and
remaining in other flat file.like :-

flat file 1

id name amt
100 a 100
200 b 200
100 n 300
----------------------
----------------------
flat file 2

id name amt
400 p 3000
100 a 100
600 x 6000

Plz reply me ASAP.

Answer Posted / bala ramesh

in this logic , frist take one sequene genrator
transformation ,pass next value to expression
transformation and also pass id,name,and amt.
in this transformation and also create one output port
(temp).it is decimat type and write codition like
(iif(NEXTVAL %2=0,0,1)) , after take one router
transformation ,pass these ports (id,name,amt and
temp) .then create two group ,one is temp=0 and another one
is temp=1.after pass first group to one flat file ,second
group to second flat file.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a connected transformation?

681


What is the difference between SOURCE and TARGET BASED COMMITS? What are the deliverables?in your project?

1642


What is domain in terms of informatica?

567


How to call shell scripts from informatica?

579


What's the layout of parameter file (what does a parameter file contain?)?

1919






How might you approve all mappings in the archive all the while?

606


What is meant by lookup transformation? Explain the types of lookup transformation?

571


Explain the types of lookup transformation?

579


Describe an informatica powercenter?

609


generate date / time dimension in informatica

727


Tell me about your experience in informatica? what is best mark you can give yourself? How to answer this question?

7772


What are the basic requirements to join two sources in a source qualifier transformation using default join?

619


Write the unconnected lookup syntax?

664


What are Dimensional table?

622


What does update strategy mean, and what are the different option of it?

593