Output-index -
The component calls the specified transform function for each input record. The transform function must return a zero-based numeric value. Reformat uses this value to direct the input record to the output port that has the same number as the value, and execute the transform function if any associated with the port.
When we specify a value for this parameter, each input record goes to exactly one transform -output port pair.
Note - If you specify a value of the output-index parameter, you cannot also specify the output-indexes parameter, Use output-index when you want to direct a single record into a single transform-output-port, use output indexes to direct a single record to multiple transform-output ports.
Output-indexes -
The component calls the specified transform function for each input record. The transform function uses the value of the input record to direct that input record to particular transform-output ports.
The expected output of the transform function is a vector of numeric values. The component considers each element of this vector as an index into the output transforms and ports. The component directs the input records to the identified output ports and executes the transform functions if any associated with those parts.
If an index is out of range(less than zero or greater than the highest-numbered port) The component ignores the index.
If a port appears multiple times in the vector, the component uses the corresponding transform-port only once.
out :: output_indexes(in)=
begin
out::1: if (in.kind ==รก' ) [vector 0,1,2];
out::2:if (in.kind =='b' ) [vector 2,3,4];
end;
No comments:
Post a Comment