) Diff.between Output index and Output indexes?
Answers were Sorted based on User's Feedback
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 | 1 No |
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 |
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 |
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 |
What are differences between different gde versions(1.10,1.11,1.12,1.13and 1.15)?
What is the difference between sandbox and EME, can we perform checkin and checkout through sandbox?
5 Answers JPMorgan Chase, Syntel,
What are the different versions and releases of ABinitio ?
What are the steps to create a repository in ab initio?
How to find the project(pub,priv,common,client) in between public, Private,common?Any identification?
What is air-project parameter ? How to use in abinitio graph?
3 Answers IBM, TCL, Tech Mahindra,
I am unable to connect sever database(oracle) from gde(db config file) local system.i set all these?
What are the Types of parallelism in detail?
Mention what are the different types of parallelism used in abinitio?
Order of Evaluation of Parameters
how to prepare scd2 in abinitio
wt is meant by repartioning in howmany ways it can be done.