FUNL0166 END IF without IF.
A #END IF line was encountered while outside of any #IF blocks. This is possibly due to an error on the #IF line itself.
A #END IF line was encountered while outside of any #IF blocks. This is possibly due to an error on the #IF line itself.