Previous Page | Next Page

The DATASETS Procedure

Example 7: 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-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).

Previous Page | Next Page | Top of Page