Please find the below job design
Code: Select all
sqfile -> sort_stage -> remove_dup -> transformer -> sqfile
Code: Select all
If (trim(link1.col1,' ','A')='msg1') then 'jb1'
else if ((trim(link1.col1,' ','A')='msg2') or (trim(link1.col1,' ','A')='msg3')) then 'jb2'
else 'Unknown'
But after running the same job for several iteration (upto 10 runs), the conditional statement is not working and
we are getting the output as 'Unknown' for all the incoming values(even if the incoming values are 'msg1' or 'msg2').
the length of link1.col1 is varchar(16).
Can anyone please help me to get rid of this strange error.