Abinitio Interview Question #16



Watch my YouTube video for explanation :


Please look into the class notes here for your references:

field1 field2 field3
2 a 10200
4 b 10200300400
2 c 10200


Normalize
output

field1 field2
a 1
a 2
b 1
b 2
b 3
b 4
c 1
c 2

out::length(in)=
begin

length::length(string_filter_out(in.field3,'0'));

end;

out::nomalize(index,in)=
begin
out.field2::in.field2;
out.field3::string_split(in.field3,'0')[index];
end;

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