SAS stores date values
as numbers so that you can easily sort the values or perform arithmetic
computations. You can use SAS date values as you use any other numeric
values.
data work.test;
set cert.temp;
TotDay=enddate-startdate;
run;
proc print data=work.test;
run;
Output 13.1 PROC PRINT Output of Work.Test (partial output)