Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The SASEFAME Interface Engine

Example 5.4: Limiting the time range of data

You may also limit the time range of the data in the SAS data set by using the WHERE statement in the data step to process the time id variable DATE only when it falls in the range you are interested in.



libname famedir SASEFAME '.' convert=(freq=annual technique=constant);

libname mydir '/mine/data/europe/sas/oecdir';
 
data mydir.a;  /* add data set to mydir */
   set famedir.oecd1; 
   /* where only  */
   where date between '01jan88'd and '31dec90'd;
   run;

proc print data=mydir.a; run;

All data for 1988, 1989, and 1990 are included in the SAS data set. See the "SAS Language: Reference, Version 7" for more information on KEEP, DROP, RENAME and WHERE statements.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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