In reply to thanoon.

The code in the book does not contain any errors. If you are experiencing problems in SAS/IML, post your code and question to the SAS/IML Support Community or contact SAS Technical Support.