Previous Page | Next Page

Working with Time Series Data

Using SAS Data Set Options

You can use the OBS= and FIRSTOBS= data set options to subset the input data set.

For example, the following statements print observations 20 through 25 of the data set FULL:

   proc print data=full(firstobs=20 obs=25);
   run;

Figure 3.3 Partial Listing of Data Set FULL
Obs date state i x y close
20 21OCT1993 NC 20 0.44803 0.35302 0.44803
21 22OCT1993 NC 21 0.03186 1.67414 0.03186
22 23OCT1993 NC 22 -0.25232 -1.61289 -0.25232
23 24OCT1993 NC 23 0.42524 0.73112 0.42524
24 25OCT1993 NC 24 0.05494 -0.88664 0.05494
25 26OCT1993 NC 25 -0.29096 -1.17275 -0.29096

You can use KEEP= and DROP= data set options to exclude variables from the input data set. See SAS Language Reference: Dictionary for information about SAS data set options.

Previous Page | Next Page | Top of Page