Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Working with Time Series Data

Subsetting Data and Selecting Observations

It is often necessary to subset data for analysis. You may need to subset data to

You can subset data either by using the DATA step to create a subset data set or by using a WHERE statement with the SAS procedure that analyzes the data.

A typical WHERE statement used in a procedure has the form

   proc arima data=full;
      where '31dec1993'd < day < '26mar1994'd;
      identify var=close;
   run;

For complete reference documentation on the WHERE statement refer to SAS Language: Reference.


Subsetting SAS Data Sets

Using the WHERE Statement with SAS Procedures

Using SAS Data Set Options

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.