Output Index

What is output index? How does it work in reformat?
Does below function show Output index in use

output:1:if(in.emp.sal<500)in.emp.sal
output:2:force_error("Employee salary is less than 500)

Questions by mhero

Showing Answers 1 - 6 of 6 Answers

geekrohit

  • Jul 14th, 2009
 

Output index function is used in reformat having multiple output ports to direct which record goes to which out port.
for eg. for a reformat with 3 out ports such a function could be like

if (value=='A') 1 else if (value=='B') 2 else 3

which basically means that if the field 'value' of any record evaluates to A in the transform function, it will come out of port 1 only and not from 2 or 3.

  Was this answer useful?  Yes

ahamed

  • May 24th, 2016
 

If you want to send one input record to only one output port we can use the output index

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions