Language Reference |
makes a data set current for input
The SETIN statement chooses the specified data set from among the data sets already opened for input by the EDIT or USE statement. This data set becomes the current input data set for subsequent data management statements. The NOBS option is not required. If specified, the NOBS option returns the number of observations in the data set in the scalar variable name. The POINT option makes the specified observation the current one. It positions the data set to a particular observation. The SHOW datasets command lists data sets already opened for input.
In the example that follows, if the data set WORK.A has 20 observations, the variable SIZE is set to 20. Also, the current observation is set to 10.
setin work.a nobs size point 10; list; /* lists observation 10 */
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.