In reply to emad soroori.

I would guess that you are passing an expression to the LOG function that contains nonpositive values. This could be caused by a logical error, a modeling error, or by invalid data. When you have a SAS/IML programming error or question, please post it to the SAS/IML Support Community.