Chapter Contents

Previous

Next
The DATASETS Procedure

Example 6: Aging SAS Data Sets


Procedure features:
AGE statement

This example shows how the AGE statement ages SAS files.


Program
 Note about code
options pagesize=40 linesize=80 nodate pageno=1 source;

libname daily 'SAS-data-library';
 Note about code
   proc datasets library=daily nolist;

 Note about code
      age today day1-day7;
   run;


SAS Log

6  options pagesize=40 linesize=80 nodate pageno=1 source;
7  
8     proc datasets library=daily nolist;
9  
10        age today day1-day7;
11     run;
NOTE: Deleting DAILY.DAY7 (memtype=DATA).
NOTE: Ageing the name DAILY.DAY6 to DAILY.DAY7 (memtype=DATA).
NOTE: Ageing the name DAILY.DAY5 to DAILY.DAY6 (memtype=DATA).
NOTE: Ageing the name DAILY.DAY4 to DAILY.DAY5 (memtype=DATA).
NOTE: Ageing the name DAILY.DAY3 to DAILY.DAY4 (memtype=DATA).
NOTE: Ageing the name DAILY.DAY2 to DAILY.DAY3 (memtype=DATA).
NOTE: Ageing the name DAILY.DAY1 to DAILY.DAY2 (memtype=DATA).
NOTE: Ageing the name DAILY.TODAY to DAILY.DAY1 (memtype=DATA).


Chapter Contents

Previous

Next

Top of Page

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