IN Informatica, I have 10 records in my source system. I need
to load 2 records to target for each run. how to
perform.please let me know. I know by using Mapping variable
we can perform but how to load please any one explain.

Answer Posted / ankit kansal

Overall Desc
SRC-->>SQ-->>EXPR-->>FILTER-->>TARG

create a mapping variable name $$max_bound of integer data type and aggregation type max

now in expression variable
seq v seq+1
o_seq o seq
v_temp v v_temp+1
curr_val v IIF(v_temp=1,setmaxvariable($$max_bound,$$max_bound+2),0)
o_map_val o setvariable($$max_bound,NULL)


now come to filter transformation
and write condition as
(seq<=$$max_bound)AND(seq>$$max_bound-2)

Thanks
http://deepinopensource.blogspot.in/

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is an ETL or ETT? And what are the different types?

7193


list and discuss two approaches for updation of target table in Informatica and how they are different.

1895


Identifying the bottlenecks in various components of Informatica and resolving them.

2383


what is session partitioning?

1758


What are dimensions?

800


give detail on the sales project how many number of dimensions & fact tables are used in projec briefly. how the four fact tables taken in the project.

2123


Hi Guys, my requirement is to load 1 yr data from oracle to teradata database through abinitio etl graph.i need to schedule this as a monthly job.but i want to load 12 month data for the first time and from second time it should load last (recent) month data and delete 13th month data. For example For the first time it should load 201208 to 201108 data, second time it should delete 201108 month data and load 201209 month data. I developed garph to load 12 month data ,but i don't know how to handle above requirement as am new to abinitio. i greatly appreciate you help.Thank You.

1951


What are the different etl testing categories as per their function?

760


what are the facilities provided by data warehouse to analytical users?

1830


how to connect to a flatfile through ftp in informatica

13775


hoe to access second value in mapping parameter if it is having more than one value ?????????????

1329


What is tracing level? How many types of transformations supported by sorted input?

747


What are the three tiers in etl?

787


Do we need an ETL tool? When do we go for the tools in the market?

717


What are cubes and olap cubes?

750