Abinitio Interview Question 40

                 

                                          Abinitio Interview Question 40

Watch the youtube video


seqNo, deptName,citi1, citi2 1, XYZ, Pune, Guwahati 2, ABC, Mumbai, Chennai Output: seqNo,deptName,city 1, XYZ, Pune 1, XYZ, Guwahati 2, ABC, Mumbai 2, ABC, Chennai input.dml record string("\n") str=''; end; input.dml record string("\n") str=''; end; output.dml record string(",") seqNo=''; string(",") deptName=''; string(",") city=''; end; out::length()= begin out::length(string_split(in.str),',') -2; end; out::normalize(in,index)= begin out.seqNo::string_split((in.str),',')[0]; out.deptName::string_split((in.str),',')[1]; out.city::string_split((in.str),',')[index+2]; end;



For More Abinitio, AWS, Database content please visit my youTube channel.


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