Abinitio Interview Question # 10 | output_indexes versus output_index


Watch my YouTube video for explanation :




Please look into the class notes here for your references:

Reformat ,If I do output_indexes and output_index at the same time then 
what will happen?


out:output_index(in):
begin
out:1: if(in.region=='emea') 1;
out:2: if(in.region=='apac') 2;
out:3: if(in.region=='na') 3;
out:3: 0;
end


out:output_indexes(in):
begin
out:1: if(in.region=='emea') [vector 1,0];
out:2: if(in.region=='apac') [vector 2,0];
out:3: if(in.region=='na')   [vector 3,0];
out:3: [vector 0];
end

Is it possible? If not when and what error would be displayed?
yes , no Error as such ,but output_indexes takes precedence over the other


Fore more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel 

Click DataPundit

Comments

Popular posts from this blog

Abinitio Interview Question # 1 - Write Multiple Files in Abinitio

Next In Sequence in ABinitio | How next_in_sequence() works in MFS