In reply to Achintya Mengi.

You can get help for SAS programming questions at the SAS Support Communities. You can post your code and the log.

In this case, the error is saying that a matrix has not been defined. I don't know which matrix, but the code assumes that the variable X contains the data, so check that.