In reply to Urvir Palan.

"Code is not working" is not useful information. Most likely cause: you don't have SAS/IML or you don't have a recent version of SAS.
If you want to pursue this, please post the log and your SAS version to the SAS Support Communities: https://communities.sas.com/
There is no such thing as "SAS 9.0.4", so also post the result of
%put &SYSVLONG;
to that site when you ask your question.