In reply to Yasmine.

You don't have to read all numeric variables into the matrix. You can specify the variables to read. For example:

read all var {x y z w} into X; /* create a matrix with 4 columns */
read all var {ID}; /* create a vector from the ID variable */

If that doesn't answer your question, post a portion of your program to the Support Community for SAS/IML.