This might be because proc iml deals with matrices of one type only. Numeric or character. The sashelp.class data set contains both numeric and character data types.
This blog post shows how to write multiple matrices to a single data set enabling writing both a numeric and character matrix to a data set. I guess you would have to split sashelp.class into two data sets first to separate the character and numeric data.