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

Example 5.3: Writing Time Series to the SAS data set

You can use the KEEP or DROP statement to include or exclude certain series names from the SAS data set.


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; 
   drop ita_dird--jpn_herd tur_dird--usa_herd;
   run;

proc print data=mydir.a; run;

You can rename your SAS variables by using the RENAME statement.



option validvarname=any;

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; 
   /* keep and rename  */
   keep date ita_dird--jpn_herd tur_dird--usa_herd;
   rename ita_dird='Italy.dirdes'n
          jpn_dird='Japan.dirdes'n
          tur_dird='Turkey.dirdes'n
          usa_dird='UnitedStates.dirdes'n ;
   run;

proc print data=mydir.a; run;

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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