) Diff.between Output index and Output indexes?

Answers were Sorted based on User's Feedback



) Diff.between Output index and Output indexes?..

Answer / suman sv

Use output-index when we want to direct a single record to a single transform-output port.
Ex: suppose there are 100 input records and two output ports.
According to the transform function you specify for output-index, the split can be 50/50, 60/40, 0/100, 99/1, or any other combination that adds up to 100.

Use output-indexes to direct a single record to multiple transform-output ports.
Ex: out :: output_indexes(in) =
begin
out :1: if (in.kind == "a") [vector 0, 1, 2];
out :2: if (in.kind == "b") [vector 2, 3, 4];
out : : [vector 5];
end;
it directs records as:
Ports 0, 1, and 2 if the field in.kind is “a”
Ports 2, 3, and 4 if the field in.kind is “b”
Port 5 if otherwise

Is This Answer Correct ?    43 Yes 0 No

) Diff.between Output index and Output indexes?..

Answer / chiranjiv pandey

When we use output index, a single record can go only single
port but in case of output indexes one record can go one or
more that one port.

Is This Answer Correct ?    41 Yes 0 No

) Diff.between Output index and Output indexes?..

Answer / harika motepalli

Both Output index & output indexes used for "Conditional assignment" of your input data to out ports but the only difference is Output_index allows to assign to only 1 output port whereas Output_indexes allows to assign to multiple output ports.

********************************* Eg 1 **********************************

out::output_index(in)=

begin

out:1:if ( in.country=='Malaysia') 0 ; // if country name is Malaysia then divert input records to out0 port

out:2: if (in.country--'Singapore') 1;

out:: 2;

end;

**************************** Eg 2 **********************

out::output_indexes(in)=

begin

out:1:if ( in.country=='Malaysia') [ vector 0,1] ; // if country name is Malaysia then divert input records to out0 & out1 ports

out:2: if (in.country--'Singapore') [ vector 2 ];

out:: [vector 3 ];

end;

Is This Answer Correct ?    4 Yes 0 No

) Diff.between Output index and Output indexes?..

Answer / sasi

When we use output index in reformat having multiple output
ports it decides through which port the output goes...
In case of output indexes the output goes through all the
ports..

Is This Answer Correct ?    12 Yes 15 No

Post New Answer

More Ab Initio Interview Questions

Hi friends i have 3 input files 1 is country file(cid,cname) 2 is State file(cid,sname) 3 is populate file(pid,sid,Adress) I want (cname & total poplation) how i can get the output please help me Thank you

1 Answers  


How to move or copy the project parameter or project object to my sandbox?

0 Answers  


What dedup-component and replicate component does?

0 Answers  


What is a rollup component?

0 Answers  


What do you mean by the overflow errors?

0 Answers  


How do you improve the performance of a graph?

0 Answers  


what is difference between chk point n phase.Say im loading a file (containig 1 lakh records) and my graph fails after loading 50,000th record.What is the advantage of using check point in this case. Will i be able to start from 51000th record.

1 Answers   IBM,


what is decoding & what is NVL?

1 Answers  


Can some tell me at which level pdl gets resolved when parameters are resolved in abinitio? Also what happens in dml evaluation during parameter evaluation ?

0 Answers  


What is the return type of lookup_not_loaded() ? Does it return 0 or 1 to signify true or false or does it return index ...can someone please explain.

0 Answers  


You can ask about - meta pivot, leading records, read & write multiple files component ? How to use in abinitio graph?

1 Answers   IBM, TCL,


What is the significance of record required indicator of Join component ? How to use in abinitio graph?

2 Answers   IBM, TCL,


Categories