GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  Abinitio

 Print  |  
Question:  Output Index

Answer: 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)


July 07, 2009 11:11:34 #1
 geekrohit   Member Since: July 2009    Total Comments: 2 

RE: Output Index
 
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.
     

 

Back To Question