One more way is DROP option of dataset.

use Sashelp.Heart(drop=Weight); /* open data set */
read all var _num_ into X; /* X is matrix */
close;