You can use the READ statement to create a SAS/IML matrix from data in a SAS data set. You must first open a SAS data set by using the USE or EDIT statement. If you have several data sets open, you can use the SETIN statement to make one the current input data set.
The general form of the READ statement is as follows:
where
specifies a range of observations. For details, see the section Process a Range of Observations.
selects a set of variables. For details about the VAR clause, see the section Select Variables with the VAR Clause.
is an expression that is evaluated as being true or false. For details about the WHERE clause, see the section Process Data by Using the WHERE Clause.
names a target matrix for the data.