```Date: Wed, 23 Dec 1998 14:27:28 -0500 Reply-To: MIKE SACCA Sender: "SAS(r) Discussion" From: MIKE SACCA Subject: Calculating AGE in SAS Content-Type: multipart/mixed; Good Afternoon! Calculating age using the standard SAS logic of: age = (date() - birth) / 362.25 sometimes causes problems when using leap year comparison dates vs non-leap year birth dates and vice-versa. I have attached a saslog (ageprob.log) that details several scenarios where this occurs. Also attached is a calculation routine that corrects the problem. This routine was created by gathering input from various statistical analysts across the country and is now used as our standard for calculating age. This may be useful to fellow SAS users. Thanx! Mike Sacca - The Peer Review Organization of New Jersey NOTE: Copyright (c) 1989-1995 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) Proprietary Software Release 6.11 TS020 Licensed to IOWA FOUNDATION FOR MEDICAL CARE, Site 0032720002. NOTE: AUTOEXEC processing beginning; file is C:\SAS\AUTOEXEC.SAS. NOTE: AUTOEXEC processing completed. 1 /* Step TEST1 shows what happens when you attempt to calculate the age for */ 2 /* benes born during 1932 (leap year) but who were born BEFORE february 29, 1932. */ 3 /* In this example, I am using a NON-LEAP YEAR (1997) to compare against */ 4 5 data test1; 6 chkstart= mdy(01,01,97); 7 chkend = mdy(02,28,97); 8 dobstart = mdy(01,01,32); 9 dobend = mdy(02,28,32); 10 11 format chkstart dobstart mmddyy8.; 12 13 do i = chkstart to chkend; 14 if i = mdy(01,01,97) then 15 age = (chkstart- dobstart) / 365.25; 16 else if i > mdy(01,01,97) then 17 do; 18 dobstart=dobstart+1; 19 chkstart=chkstart+1; 20 age = (chkstart- dobstart) / 365.25; 21 end; 22 put chkstart= dobstart= age=; 23 end; 24 run; CHKSTART=01/01/97 DOBSTART=01/01/32 AGE=65.002053388 CHKSTART=01/02/97 DOBSTART=01/02/32 AGE=65.002053388 CHKSTART=01/03/97 DOBSTART=01/03/32 AGE=65.002053388 CHKSTART=01/04/97 DOBSTART=01/04/32 AGE=65.002053388 CHKSTART=01/05/97 DOBSTART=01/05/32 AGE=65.002053388 CHKSTART=01/06/97 DOBSTART=01/06/32 AGE=65.002053388 CHKSTART=01/07/97 DOBSTART=01/07/32 AGE=65.002053388 CHKSTART=01/08/97 DOBSTART=01/08/32 AGE=65.002053388 CHKSTART=01/09/97 DOBSTART=01/09/32 AGE=65.002053388 CHKSTART=01/10/97 DOBSTART=01/10/32 AGE=65.002053388 CHKSTART=01/11/97 DOBSTART=01/11/32 AGE=65.002053388 CHKSTART=01/12/97 DOBSTART=01/12/32 AGE=65.002053388 CHKSTART=01/13/97 DOBSTART=01/13/32 AGE=65.002053388 CHKSTART=01/14/97 DOBSTART=01/14/32 AGE=65.002053388 CHKSTART=01/15/97 DOBSTART=01/15/32 AGE=65.002053388 CHKSTART=01/16/97 DOBSTART=01/16/32 AGE=65.002053388 CHKSTART=01/17/97 DOBSTART=01/17/32 AGE=65.002053388 CHKSTART=01/18/97 DOBSTART=01/18/32 AGE=65.002053388 CHKSTART=01/19/97 DOBSTART=01/19/32 AGE=65.002053388 CHKSTART=01/20/97 DOBSTART=01/20/32 AGE=65.002053388 CHKSTART=01/21/97 DOBSTART=01/21/32 AGE=65.002053388 CHKSTART=01/22/97 DOBSTART=01/22/32 AGE=65.002053388 CHKSTART=01/23/97 DOBSTART=01/23/32 AGE=65.002053388 CHKSTART=01/24/97 DOBSTART=01/24/32 AGE=65.002053388 CHKSTART=01/25/97 DOBSTART=01/25/32 AGE=65.002053388 CHKSTART=01/26/97 DOBSTART=01/26/32 AGE=65.002053388 CHKSTART=01/27/97 DOBSTART=01/27/32 AGE=65.002053388 CHKSTART=01/28/97 DOBSTART=01/28/32 AGE=65.002053388 CHKSTART=01/29/97 DOBSTART=01/29/32 AGE=65.002053388 CHKSTART=01/30/97 DOBSTART=01/30/32 AGE=65.002053388 CHKSTART=01/31/97 DOBSTART=01/31/32 AGE=65.002053388 CHKSTART=02/01/97 DOBSTART=02/01/32 AGE=65.002053388 CHKSTART=02/02/97 DOBSTART=02/02/32 AGE=65.002053388 CHKSTART=02/03/97 DOBSTART=02/03/32 AGE=65.002053388 CHKSTART=02/04/97 DOBSTART=02/04/32 AGE=65.002053388 CHKSTART=02/05/97 DOBSTART=02/05/32 AGE=65.002053388 CHKSTART=02/06/97 DOBSTART=02/06/32 AGE=65.002053388 CHKSTART=02/07/97 DOBSTART=02/07/32 AGE=65.002053388 CHKSTART=02/08/97 DOBSTART=02/08/32 AGE=65.002053388 CHKSTART=02/09/97 DOBSTART=02/09/32 AGE=65.002053388 CHKSTART=02/10/97 DOBSTART=02/10/32 AGE=65.002053388 CHKSTART=02/11/97 DOBSTART=02/11/32 AGE=65.002053388 CHKSTART=02/12/97 DOBSTART=02/12/32 AGE=65.002053388 CHKSTART=02/13/97 DOBSTART=02/13/32 AGE=65.002053388 CHKSTART=02/14/97 DOBSTART=02/14/32 AGE=65.002053388 CHKSTART=02/15/97 DOBSTART=02/15/32 AGE=65.002053388 CHKSTART=02/16/97 DOBSTART=02/16/32 AGE=65.002053388 CHKSTART=02/17/97 DOBSTART=02/17/32 AGE=65.002053388 CHKSTART=02/18/97 DOBSTART=02/18/32 AGE=65.002053388 CHKSTART=02/19/97 DOBSTART=02/19/32 AGE=65.002053388 CHKSTART=02/20/97 DOBSTART=02/20/32 AGE=65.002053388 CHKSTART=02/21/97 DOBSTART=02/21/32 AGE=65.002053388 CHKSTART=02/22/97 DOBSTART=02/22/32 AGE=65.002053388 CHKSTART=02/23/97 DOBSTART=02/23/32 AGE=65.002053388 CHKSTART=02/24/97 DOBSTART=02/24/32 AGE=65.002053388 CHKSTART=02/25/97 DOBSTART=02/25/32 AGE=65.002053388 CHKSTART=02/26/97 DOBSTART=02/26/32 AGE=65.002053388 CHKSTART=02/27/97 DOBSTART=02/27/32 AGE=65.002053388 CHKSTART=02/28/97 DOBSTART=02/28/32 AGE=65.002053388 NOTE: The data set WORK.TEST1 has 1 observations and 6 variables. NOTE: The DATA statement used 1.91 seconds. 25 26 /* Step TEST2 shows what happens when you attempt to calculate the age for */ 27 /* benes born during 1932 (leap year) but who were born AFTER february 29, 1932. */ 28 /* In this example, I am using a NON-LEAP YEAR (1997) to compare against */ 29 30 data test2; 31 chkstart= mdy(03,01,97); 32 chkend = mdy(12,31,97); 33 dobstart = mdy(03,01,32); 34 dobend = mdy(12,31,32); 35 36 format chkstart dobstart mmddyy8.; 37 38 do i = chkstart to chkend; 39 if i = mdy(03,01,97) then 40 age = (chkstart- dobstart) / 365.25; 41 else if i > mdy(03,01,97) then 42 do; 43 dobstart=dobstart+1; 44 chkstart=chkstart+1; 45 age = (chkstart- dobstart) / 365.25; 46 end; 47 put chkstart= dobstart= age=; 48 end; 49 run; CHKSTART=03/01/97 DOBSTART=03/01/32 AGE=64.999315537 CHKSTART=03/02/97 DOBSTART=03/02/32 AGE=64.999315537 CHKSTART=03/03/97 DOBSTART=03/03/32 AGE=64.999315537 CHKSTART=03/04/97 DOBSTART=03/04/32 AGE=64.999315537 CHKSTART=03/05/97 DOBSTART=03/05/32 AGE=64.999315537 CHKSTART=03/06/97 DOBSTART=03/06/32 AGE=64.999315537 CHKSTART=03/07/97 DOBSTART=03/07/32 AGE=64.999315537 CHKSTART=03/08/97 DOBSTART=03/08/32 AGE=64.999315537 CHKSTART=03/09/97 DOBSTART=03/09/32 AGE=64.999315537 CHKSTART=03/10/97 DOBSTART=03/10/32 AGE=64.999315537 CHKSTART=03/11/97 DOBSTART=03/11/32 AGE=64.999315537 CHKSTART=03/12/97 DOBSTART=03/12/32 AGE=64.999315537 CHKSTART=03/13/97 DOBSTART=03/13/32 AGE=64.999315537 CHKSTART=03/14/97 DOBSTART=03/14/32 AGE=64.999315537 CHKSTART=03/15/97 DOBSTART=03/15/32 AGE=64.999315537 CHKSTART=03/16/97 DOBSTART=03/16/32 AGE=64.999315537 CHKSTART=03/17/97 DOBSTART=03/17/32 AGE=64.999315537 CHKSTART=03/18/97 DOBSTART=03/18/32 AGE=64.999315537 CHKSTART=03/19/97 DOBSTART=03/19/32 AGE=64.999315537 CHKSTART=03/20/97 DOBSTART=03/20/32 AGE=64.999315537 CHKSTART=03/21/97 DOBSTART=03/21/32 AGE=64.999315537 CHKSTART=03/22/97 DOBSTART=03/22/32 AGE=64.999315537 CHKSTART=03/23/97 DOBSTART=03/23/32 AGE=64.999315537 CHKSTART=03/24/97 DOBSTART=03/24/32 AGE=64.999315537 CHKSTART=03/25/97 DOBSTART=03/25/32 AGE=64.999315537 CHKSTART=03/26/97 DOBSTART=03/26/32 AGE=64.999315537 CHKSTART=03/27/97 DOBSTART=03/27/32 AGE=64.999315537 CHKSTART=03/28/97 DOBSTART=03/28/32 AGE=64.999315537 CHKSTART=03/29/97 DOBSTART=03/29/32 AGE=64.999315537 CHKSTART=03/30/97 DOBSTART=03/30/32 AGE=64.999315537 CHKSTART=03/31/97 DOBSTART=03/31/32 AGE=64.999315537 CHKSTART=04/01/97 DOBSTART=04/01/32 AGE=64.999315537 CHKSTART=04/02/97 DOBSTART=04/02/32 AGE=64.999315537 CHKSTART=04/03/97 DOBSTART=04/03/32 AGE=64.999315537 CHKSTART=04/04/97 DOBSTART=04/04/32 AGE=64.999315537 CHKSTART=04/05/97 DOBSTART=04/05/32 AGE=64.999315537 CHKSTART=04/06/97 DOBSTART=04/06/32 AGE=64.999315537 CHKSTART=04/07/97 DOBSTART=04/07/32 AGE=64.999315537 CHKSTART=04/08/97 DOBSTART=04/08/32 AGE=64.999315537 CHKSTART=04/09/97 DOBSTART=04/09/32 AGE=64.999315537 CHKSTART=04/10/97 DOBSTART=04/10/32 AGE=64.999315537 CHKSTART=04/11/97 DOBSTART=04/11/32 AGE=64.999315537 CHKSTART=04/12/97 DOBSTART=04/12/32 AGE=64.999315537 CHKSTART=04/13/97 DOBSTART=04/13/32 AGE=64.999315537 CHKSTART=04/14/97 DOBSTART=04/14/32 AGE=64.999315537 CHKSTART=04/15/97 DOBSTART=04/15/32 AGE=64.999315537 CHKSTART=04/16/97 DOBSTART=04/16/32 AGE=64.999315537 CHKSTART=04/17/97 DOBSTART=04/17/32 AGE=64.999315537 CHKSTART=04/18/97 DOBSTART=04/18/32 AGE=64.999315537 CHKSTART=04/19/97 DOBSTART=04/19/32 AGE=64.999315537 CHKSTART=04/20/97 DOBSTART=04/20/32 AGE=64.999315537 CHKSTART=04/21/97 DOBSTART=04/21/32 AGE=64.999315537 CHKSTART=04/22/97 DOBSTART=04/22/32 AGE=64.999315537 CHKSTART=04/23/97 DOBSTART=04/23/32 AGE=64.999315537 CHKSTART=04/24/97 DOBSTART=04/24/32 AGE=64.999315537 CHKSTART=04/25/97 DOBSTART=04/25/32 AGE=64.999315537 CHKSTART=04/26/97 DOBSTART=04/26/32 AGE=64.999315537 CHKSTART=04/27/97 DOBSTART=04/27/32 AGE=64.999315537 CHKSTART=04/28/97 DOBSTART=04/28/32 AGE=64.999315537 CHKSTART=04/29/97 DOBSTART=04/29/32 AGE=64.999315537 CHKSTART=04/30/97 DOBSTART=04/30/32 AGE=64.999315537 CHKSTART=05/01/97 DOBSTART=05/01/32 AGE=64.999315537 CHKSTART=05/02/97 DOBSTART=05/02/32 AGE=64.999315537 CHKSTART=05/03/97 DOBSTART=05/03/32 AGE=64.999315537 CHKSTART=05/04/97 DOBSTART=05/04/32 AGE=64.999315537 CHKSTART=05/05/97 DOBSTART=05/05/32 AGE=64.999315537 CHKSTART=05/06/97 DOBSTART=05/06/32 AGE=64.999315537 CHKSTART=05/07/97 DOBSTART=05/07/32 AGE=64.999315537 CHKSTART=05/08/97 DOBSTART=05/08/32 AGE=64.999315537 CHKSTART=05/09/97 DOBSTART=05/09/32 AGE=64.999315537 CHKSTART=05/10/97 DOBSTART=05/10/32 AGE=64.999315537 CHKSTART=05/11/97 DOBSTART=05/11/32 AGE=64.999315537 CHKSTART=05/12/97 DOBSTART=05/12/32 AGE=64.999315537 CHKSTART=05/13/97 DOBSTART=05/13/32 AGE=64.999315537 CHKSTART=05/14/97 DOBSTART=05/14/32 AGE=64.999315537 CHKSTART=05/15/97 DOBSTART=05/15/32 AGE=64.999315537 CHKSTART=05/16/97 DOBSTART=05/16/32 AGE=64.999315537 CHKSTART=05/17/97 DOBSTART=05/17/32 AGE=64.999315537 CHKSTART=05/18/97 DOBSTART=05/18/32 AGE=64.999315537 CHKSTART=05/19/97 DOBSTART=05/19/32 AGE=64.999315537 CHKSTART=05/20/97 DOBSTART=05/20/32 AGE=64.999315537 CHKSTART=05/21/97 DOBSTART=05/21/32 AGE=64.999315537 CHKSTART=05/22/97 DOBSTART=05/22/32 AGE=64.999315537 CHKSTART=05/23/97 DOBSTART=05/23/32 AGE=64.999315537 CHKSTART=05/24/97 DOBSTART=05/24/32 AGE=64.999315537 CHKSTART=05/25/97 DOBSTART=05/25/32 AGE=64.999315537 CHKSTART=05/26/97 DOBSTART=05/26/32 AGE=64.999315537 CHKSTART=05/27/97 DOBSTART=05/27/32 AGE=64.999315537 CHKSTART=05/28/97 DOBSTART=05/28/32 AGE=64.999315537 CHKSTART=05/29/97 DOBSTART=05/29/32 AGE=64.999315537 CHKSTART=05/30/97 DOBSTART=05/30/32 AGE=64.999315537 CHKSTART=05/31/97 DOBSTART=05/31/32 AGE=64.999315537 CHKSTART=06/01/97 DOBSTART=06/01/32 AGE=64.999315537 CHKSTART=06/02/97 DOBSTART=06/02/32 AGE=64.999315537 CHKSTART=06/03/97 DOBSTART=06/03/32 AGE=64.999315537 CHKSTART=06/04/97 DOBSTART=06/04/32 AGE=64.999315537 CHKSTART=06/05/97 DOBSTART=06/05/32 AGE=64.999315537 CHKSTART=06/06/97 DOBSTART=06/06/32 AGE=64.999315537 CHKSTART=06/07/97 DOBSTART=06/07/32 AGE=64.999315537 CHKSTART=06/08/97 DOBSTART=06/08/32 AGE=64.999315537 CHKSTART=06/09/97 DOBSTART=06/09/32 AGE=64.999315537 CHKSTART=06/10/97 DOBSTART=06/10/32 AGE=64.999315537 CHKSTART=06/11/97 DOBSTART=06/11/32 AGE=64.999315537 CHKSTART=06/12/97 DOBSTART=06/12/32 AGE=64.999315537 CHKSTART=06/13/97 DOBSTART=06/13/32 AGE=64.999315537 CHKSTART=06/14/97 DOBSTART=06/14/32 AGE=64.999315537 CHKSTART=06/15/97 DOBSTART=06/15/32 AGE=64.999315537 CHKSTART=06/16/97 DOBSTART=06/16/32 AGE=64.999315537 CHKSTART=06/17/97 DOBSTART=06/17/32 AGE=64.999315537 CHKSTART=06/18/97 DOBSTART=06/18/32 AGE=64.999315537 CHKSTART=06/19/97 DOBSTART=06/19/32 AGE=64.999315537 CHKSTART=06/20/97 DOBSTART=06/20/32 AGE=64.999315537 CHKSTART=06/21/97 DOBSTART=06/21/32 AGE=64.999315537 CHKSTART=06/22/97 DOBSTART=06/22/32 AGE=64.999315537 CHKSTART=06/23/97 DOBSTART=06/23/32 AGE=64.999315537 CHKSTART=06/24/97 DOBSTART=06/24/32 AGE=64.999315537 CHKSTART=06/25/97 DOBSTART=06/25/32 AGE=64.999315537 CHKSTART=06/26/97 DOBSTART=06/26/32 AGE=64.999315537 CHKSTART=06/27/97 DOBSTART=06/27/32 AGE=64.999315537 CHKSTART=06/28/97 DOBSTART=06/28/32 AGE=64.999315537 CHKSTART=06/29/97 DOBSTART=06/29/32 AGE=64.999315537 CHKSTART=06/30/97 DOBSTART=06/30/32 AGE=64.999315537 CHKSTART=07/01/97 DOBSTART=07/01/32 AGE=64.999315537 CHKSTART=07/02/97 DOBSTART=07/02/32 AGE=64.999315537 CHKSTART=07/03/97 DOBSTART=07/03/32 AGE=64.999315537 CHKSTART=07/04/97 DOBSTART=07/04/32 AGE=64.999315537 CHKSTART=07/05/97 DOBSTART=07/05/32 AGE=64.999315537 CHKSTART=07/06/97 DOBSTART=07/06/32 AGE=64.999315537 CHKSTART=07/07/97 DOBSTART=07/07/32 AGE=64.999315537 CHKSTART=07/08/97 DOBSTART=07/08/32 AGE=64.999315537 CHKSTART=07/09/97 DOBSTART=07/09/32 AGE=64.999315537 CHKSTART=07/10/97 DOBSTART=07/10/32 AGE=64.999315537 CHKSTART=07/11/97 DOBSTART=07/11/32 AGE=64.999315537 CHKSTART=07/12/97 DOBSTART=07/12/32 AGE=64.999315537 CHKSTART=07/13/97 DOBSTART=07/13/32 AGE=64.999315537 CHKSTART=07/14/97 DOBSTART=07/14/32 AGE=64.999315537 CHKSTART=07/15/97 DOBSTART=07/15/32 AGE=64.999315537 CHKSTART=07/16/97 DOBSTART=07/16/32 AGE=64.999315537 CHKSTART=07/17/97 DOBSTART=07/17/32 AGE=64.999315537 CHKSTART=07/18/97 DOBSTART=07/18/32 AGE=64.999315537 CHKSTART=07/19/97 DOBSTART=07/19/32 AGE=64.999315537 CHKSTART=07/20/97 DOBSTART=07/20/32 AGE=64.999315537 CHKSTART=07/21/97 DOBSTART=07/21/32 AGE=64.999315537 CHKSTART=07/22/97 DOBSTART=07/22/32 AGE=64.999315537 CHKSTART=07/23/97 DOBSTART=07/23/32 AGE=64.999315537 CHKSTART=07/24/97 DOBSTART=07/24/32 AGE=64.999315537 CHKSTART=07/25/97 DOBSTART=07/25/32 AGE=64.999315537 CHKSTART=07/26/97 DOBSTART=07/26/32 AGE=64.999315537 CHKSTART=07/27/97 DOBSTART=07/27/32 AGE=64.999315537 CHKSTART=07/28/97 DOBSTART=07/28/32 AGE=64.999315537 CHKSTART=07/29/97 DOBSTART=07/29/32 AGE=64.999315537 CHKSTART=07/30/97 DOBSTART=07/30/32 AGE=64.999315537 CHKSTART=07/31/97 DOBSTART=07/31/32 AGE=64.999315537 CHKSTART=08/01/97 DOBSTART=08/01/32 AGE=64.999315537 CHKSTART=08/02/97 DOBSTART=08/02/32 AGE=64.999315537 CHKSTART=08/03/97 DOBSTART=08/03/32 AGE=64.999315537 CHKSTART=08/04/97 DOBSTART=08/04/32 AGE=64.999315537 CHKSTART=08/05/97 DOBSTART=08/05/32 AGE=64.999315537 CHKSTART=08/06/97 DOBSTART=08/06/32 AGE=64.999315537 CHKSTART=08/07/97 DOBSTART=08/07/32 AGE=64.999315537 CHKSTART=08/08/97 DOBSTART=08/08/32 AGE=64.999315537 CHKSTART=08/09/97 DOBSTART=08/09/32 AGE=64.999315537 CHKSTART=08/10/97 DOBSTART=08/10/32 AGE=64.999315537 CHKSTART=08/11/97 DOBSTART=08/11/32 AGE=64.999315537 CHKSTART=08/12/97 DOBSTART=08/12/32 AGE=64.999315537 CHKSTART=08/13/97 DOBSTART=08/13/32 AGE=64.999315537 CHKSTART=08/14/97 DOBSTART=08/14/32 AGE=64.999315537 CHKSTART=08/15/97 DOBSTART=08/15/32 AGE=64.999315537 CHKSTART=08/16/97 DOBSTART=08/16/32 AGE=64.999315537 CHKSTART=08/17/97 DOBSTART=08/17/32 AGE=64.999315537 CHKSTART=08/18/97 DOBSTART=08/18/32 AGE=64.999315537 CHKSTART=08/19/97 DOBSTART=08/19/32 AGE=64.999315537 CHKSTART=08/20/97 DOBSTART=08/20/32 AGE=64.999315537 CHKSTART=08/21/97 DOBSTART=08/21/32 AGE=64.999315537 CHKSTART=08/22/97 DOBSTART=08/22/32 AGE=64.999315537 CHKSTART=08/23/97 DOBSTART=08/23/32 AGE=64.999315537 CHKSTART=08/24/97 DOBSTART=08/24/32 AGE=64.999315537 CHKSTART=08/25/97 DOBSTART=08/25/32 AGE=64.999315537 CHKSTART=08/26/97 DOBSTART=08/26/32 AGE=64.999315537 CHKSTART=08/27/97 DOBSTART=08/27/32 AGE=64.999315537 CHKSTART=08/28/97 DOBSTART=08/28/32 AGE=64.999315537 CHKSTART=08/29/97 DOBSTART=08/29/32 AGE=64.999315537 CHKSTART=08/30/97 DOBSTART=08/30/32 AGE=64.999315537 CHKSTART=08/31/97 DOBSTART=08/31/32 AGE=64.999315537 CHKSTART=09/01/97 DOBSTART=09/01/32 AGE=64.999315537 CHKSTART=09/02/97 DOBSTART=09/02/32 AGE=64.999315537 CHKSTART=09/03/97 DOBSTART=09/03/32 AGE=64.999315537 CHKSTART=09/04/97 DOBSTART=09/04/32 AGE=64.999315537 CHKSTART=09/05/97 DOBSTART=09/05/32 AGE=64.999315537 CHKSTART=09/06/97 DOBSTART=09/06/32 AGE=64.999315537 CHKSTART=09/07/97 DOBSTART=09/07/32 AGE=64.999315537 CHKSTART=09/08/97 DOBSTART=09/08/32 AGE=64.999315537 CHKSTART=09/09/97 DOBSTART=09/09/32 AGE=64.999315537 CHKSTART=09/10/97 DOBSTART=09/10/32 AGE=64.999315537 CHKSTART=09/11/97 DOBSTART=09/11/32 AGE=64.999315537 CHKSTART=09/12/97 DOBSTART=09/12/32 AGE=64.999315537 CHKSTART=09/13/97 DOBSTART=09/13/32 AGE=64.999315537 CHKSTART=09/14/97 DOBSTART=09/14/32 AGE=64.999315537 CHKSTART=09/15/97 DOBSTART=09/15/32 AGE=64.999315537 CHKSTART=09/16/97 DOBSTART=09/16/32 AGE=64.999315537 CHKSTART=09/17/97 DOBSTART=09/17/32 AGE=64.999315537 CHKSTART=09/18/97 DOBSTART=09/18/32 AGE=64.999315537 CHKSTART=09/19/97 DOBSTART=09/19/32 AGE=64.999315537 CHKSTART=09/20/97 DOBSTART=09/20/32 AGE=64.999315537 CHKSTART=09/21/97 DOBSTART=09/21/32 AGE=64.999315537 CHKSTART=09/22/97 DOBSTART=09/22/32 AGE=64.999315537 CHKSTART=09/23/97 DOBSTART=09/23/32 AGE=64.999315537 CHKSTART=09/24/97 DOBSTART=09/24/32 AGE=64.999315537 CHKSTART=09/25/97 DOBSTART=09/25/32 AGE=64.999315537 CHKSTART=09/26/97 DOBSTART=09/26/32 AGE=64.999315537 CHKSTART=09/27/97 DOBSTART=09/27/32 AGE=64.999315537 CHKSTART=09/28/97 DOBSTART=09/28/32 AGE=64.999315537 CHKSTART=09/29/97 DOBSTART=09/29/32 AGE=64.999315537 CHKSTART=09/30/97 DOBSTART=09/30/32 AGE=64.999315537 CHKSTART=10/01/97 DOBSTART=10/01/32 AGE=64.999315537 CHKSTART=10/02/97 DOBSTART=10/02/32 AGE=64.999315537 CHKSTART=10/03/97 DOBSTART=10/03/32 AGE=64.999315537 CHKSTART=10/04/97 DOBSTART=10/04/32 AGE=64.999315537 CHKSTART=10/05/97 DOBSTART=10/05/32 AGE=64.999315537 CHKSTART=10/06/97 DOBSTART=10/06/32 AGE=64.999315537 CHKSTART=10/07/97 DOBSTART=10/07/32 AGE=64.999315537 CHKSTART=10/08/97 DOBSTART=10/08/32 AGE=64.999315537 CHKSTART=10/09/97 DOBSTART=10/09/32 AGE=64.999315537 CHKSTART=10/10/97 DOBSTART=10/10/32 AGE=64.999315537 CHKSTART=10/11/97 DOBSTART=10/11/32 AGE=64.999315537 CHKSTART=10/12/97 DOBSTART=10/12/32 AGE=64.999315537 CHKSTART=10/13/97 DOBSTART=10/13/32 AGE=64.999315537 CHKSTART=10/14/97 DOBSTART=10/14/32 AGE=64.999315537 CHKSTART=10/15/97 DOBSTART=10/15/32 AGE=64.999315537 CHKSTART=10/16/97 DOBSTART=10/16/32 AGE=64.999315537 CHKSTART=10/17/97 DOBSTART=10/17/32 AGE=64.999315537 CHKSTART=10/18/97 DOBSTART=10/18/32 AGE=64.999315537 CHKSTART=10/19/97 DOBSTART=10/19/32 AGE=64.999315537 CHKSTART=10/20/97 DOBSTART=10/20/32 AGE=64.999315537 CHKSTART=10/21/97 DOBSTART=10/21/32 AGE=64.999315537 CHKSTART=10/22/97 DOBSTART=10/22/32 AGE=64.999315537 CHKSTART=10/23/97 DOBSTART=10/23/32 AGE=64.999315537 CHKSTART=10/24/97 DOBSTART=10/24/32 AGE=64.999315537 CHKSTART=10/25/97 DOBSTART=10/25/32 AGE=64.999315537 CHKSTART=10/26/97 DOBSTART=10/26/32 AGE=64.999315537 CHKSTART=10/27/97 DOBSTART=10/27/32 AGE=64.999315537 CHKSTART=10/28/97 DOBSTART=10/28/32 AGE=64.999315537 CHKSTART=10/29/97 DOBSTART=10/29/32 AGE=64.999315537 CHKSTART=10/30/97 DOBSTART=10/30/32 AGE=64.999315537 CHKSTART=10/31/97 DOBSTART=10/31/32 AGE=64.999315537 CHKSTART=11/01/97 DOBSTART=11/01/32 AGE=64.999315537 CHKSTART=11/02/97 DOBSTART=11/02/32 AGE=64.999315537 CHKSTART=11/03/97 DOBSTART=11/03/32 AGE=64.999315537 CHKSTART=11/04/97 DOBSTART=11/04/32 AGE=64.999315537 CHKSTART=11/05/97 DOBSTART=11/05/32 AGE=64.999315537 CHKSTART=11/06/97 DOBSTART=11/06/32 AGE=64.999315537 CHKSTART=11/07/97 DOBSTART=11/07/32 AGE=64.999315537 CHKSTART=11/08/97 DOBSTART=11/08/32 AGE=64.999315537 CHKSTART=11/09/97 DOBSTART=11/09/32 AGE=64.999315537 CHKSTART=11/10/97 DOBSTART=11/10/32 AGE=64.999315537 CHKSTART=11/11/97 DOBSTART=11/11/32 AGE=64.999315537 CHKSTART=11/12/97 DOBSTART=11/12/32 AGE=64.999315537 CHKSTART=11/13/97 DOBSTART=11/13/32 AGE=64.999315537 CHKSTART=11/14/97 DOBSTART=11/14/32 AGE=64.999315537 CHKSTART=11/15/97 DOBSTART=11/15/32 AGE=64.999315537 CHKSTART=11/16/97 DOBSTART=11/16/32 AGE=64.999315537 CHKSTART=11/17/97 DOBSTART=11/17/32 AGE=64.999315537 CHKSTART=11/18/97 DOBSTART=11/18/32 AGE=64.999315537 CHKSTART=11/19/97 DOBSTART=11/19/32 AGE=64.999315537 CHKSTART=11/20/97 DOBSTART=11/20/32 AGE=64.999315537 CHKSTART=11/21/97 DOBSTART=11/21/32 AGE=64.999315537 CHKSTART=11/22/97 DOBSTART=11/22/32 AGE=64.999315537 CHKSTART=11/23/97 DOBSTART=11/23/32 AGE=64.999315537 CHKSTART=11/24/97 DOBSTART=11/24/32 AGE=64.999315537 CHKSTART=11/25/97 DOBSTART=11/25/32 AGE=64.999315537 CHKSTART=11/26/97 DOBSTART=11/26/32 AGE=64.999315537 CHKSTART=11/27/97 DOBSTART=11/27/32 AGE=64.999315537 CHKSTART=11/28/97 DOBSTART=11/28/32 AGE=64.999315537 CHKSTART=11/29/97 DOBSTART=11/29/32 AGE=64.999315537 CHKSTART=11/30/97 DOBSTART=11/30/32 AGE=64.999315537 CHKSTART=12/01/97 DOBSTART=12/01/32 AGE=64.999315537 CHKSTART=12/02/97 DOBSTART=12/02/32 AGE=64.999315537 CHKSTART=12/03/97 DOBSTART=12/03/32 AGE=64.999315537 CHKSTART=12/04/97 DOBSTART=12/04/32 AGE=64.999315537 CHKSTART=12/05/97 DOBSTART=12/05/32 AGE=64.999315537 CHKSTART=12/06/97 DOBSTART=12/06/32 AGE=64.999315537 CHKSTART=12/07/97 DOBSTART=12/07/32 AGE=64.999315537 CHKSTART=12/08/97 DOBSTART=12/08/32 AGE=64.999315537 CHKSTART=12/09/97 DOBSTART=12/09/32 AGE=64.999315537 CHKSTART=12/10/97 DOBSTART=12/10/32 AGE=64.999315537 CHKSTART=12/11/97 DOBSTART=12/11/32 AGE=64.999315537 CHKSTART=12/12/97 DOBSTART=12/12/32 AGE=64.999315537 CHKSTART=12/13/97 DOBSTART=12/13/32 AGE=64.999315537 CHKSTART=12/14/97 DOBSTART=12/14/32 AGE=64.999315537 CHKSTART=12/15/97 DOBSTART=12/15/32 AGE=64.999315537 CHKSTART=12/16/97 DOBSTART=12/16/32 AGE=64.999315537 CHKSTART=12/17/97 DOBSTART=12/17/32 AGE=64.999315537 CHKSTART=12/18/97 DOBSTART=12/18/32 AGE=64.999315537 CHKSTART=12/19/97 DOBSTART=12/19/32 AGE=64.999315537 CHKSTART=12/20/97 DOBSTART=12/20/32 AGE=64.999315537 CHKSTART=12/21/97 DOBSTART=12/21/32 AGE=64.999315537 CHKSTART=12/22/97 DOBSTART=12/22/32 AGE=64.999315537 CHKSTART=12/23/97 DOBSTART=12/23/32 AGE=64.999315537 CHKSTART=12/24/97 DOBSTART=12/24/32 AGE=64.999315537 CHKSTART=12/25/97 DOBSTART=12/25/32 AGE=64.999315537 CHKSTART=12/26/97 DOBSTART=12/26/32 AGE=64.999315537 CHKSTART=12/27/97 DOBSTART=12/27/32 AGE=64.999315537 CHKSTART=12/28/97 DOBSTART=12/28/32 AGE=64.999315537 CHKSTART=12/29/97 DOBSTART=12/29/32 AGE=64.999315537 CHKSTART=12/30/97 DOBSTART=12/30/32 AGE=64.999315537 CHKSTART=12/31/97 DOBSTART=12/31/32 AGE=64.999315537 NOTE: The data set WORK.TEST2 has 1 observations and 6 variables. NOTE: The DATA statement used 1.63 seconds. 50 51 /* Step TEST3 shows what happens when you attempt to calculate the age for */ 52 /* benes born during 1931 (non-leap year), but who were born BEFORE february 29, 1931. */ 53 /* In this example, I am using a LEAP YEAR (1996) to compare against */ 54 55 data test3; 56 chkstart= mdy(01,01,96); 57 chkend = mdy(02,28,96); 58 dobstart = mdy(01,01,31); 59 dobend = mdy(02,28,31); 60 61 format chkstart dobstart mmddyy8.; 62 63 do i = chkstart to chkend; 64 if i = mdy(01,01,96) then 65 age = (chkstart- dobstart) / 365.25; 66 else if i > mdy(01,01,96) then 67 do; 68 dobstart=dobstart+1; 69 chkstart=chkstart+1; 70 age = (chkstart- dobstart) / 365.25; 71 end; 72 put chkstart= dobstart= age=; 73 end; 74 run; CHKSTART=01/01/96 DOBSTART=01/01/31 AGE=64.999315537 CHKSTART=01/02/96 DOBSTART=01/02/31 AGE=64.999315537 CHKSTART=01/03/96 DOBSTART=01/03/31 AGE=64.999315537 CHKSTART=01/04/96 DOBSTART=01/04/31 AGE=64.999315537 CHKSTART=01/05/96 DOBSTART=01/05/31 AGE=64.999315537 CHKSTART=01/06/96 DOBSTART=01/06/31 AGE=64.999315537 CHKSTART=01/07/96 DOBSTART=01/07/31 AGE=64.999315537 CHKSTART=01/08/96 DOBSTART=01/08/31 AGE=64.999315537 CHKSTART=01/09/96 DOBSTART=01/09/31 AGE=64.999315537 CHKSTART=01/10/96 DOBSTART=01/10/31 AGE=64.999315537 CHKSTART=01/11/96 DOBSTART=01/11/31 AGE=64.999315537 CHKSTART=01/12/96 DOBSTART=01/12/31 AGE=64.999315537 CHKSTART=01/13/96 DOBSTART=01/13/31 AGE=64.999315537 CHKSTART=01/14/96 DOBSTART=01/14/31 AGE=64.999315537 CHKSTART=01/15/96 DOBSTART=01/15/31 AGE=64.999315537 CHKSTART=01/16/96 DOBSTART=01/16/31 AGE=64.999315537 CHKSTART=01/17/96 DOBSTART=01/17/31 AGE=64.999315537 CHKSTART=01/18/96 DOBSTART=01/18/31 AGE=64.999315537 CHKSTART=01/19/96 DOBSTART=01/19/31 AGE=64.999315537 CHKSTART=01/20/96 DOBSTART=01/20/31 AGE=64.999315537 CHKSTART=01/21/96 DOBSTART=01/21/31 AGE=64.999315537 CHKSTART=01/22/96 DOBSTART=01/22/31 AGE=64.999315537 CHKSTART=01/23/96 DOBSTART=01/23/31 AGE=64.999315537 CHKSTART=01/24/96 DOBSTART=01/24/31 AGE=64.999315537 CHKSTART=01/25/96 DOBSTART=01/25/31 AGE=64.999315537 CHKSTART=01/26/96 DOBSTART=01/26/31 AGE=64.999315537 CHKSTART=01/27/96 DOBSTART=01/27/31 AGE=64.999315537 CHKSTART=01/28/96 DOBSTART=01/28/31 AGE=64.999315537 CHKSTART=01/29/96 DOBSTART=01/29/31 AGE=64.999315537 CHKSTART=01/30/96 DOBSTART=01/30/31 AGE=64.999315537 CHKSTART=01/31/96 DOBSTART=01/31/31 AGE=64.999315537 CHKSTART=02/01/96 DOBSTART=02/01/31 AGE=64.999315537 CHKSTART=02/02/96 DOBSTART=02/02/31 AGE=64.999315537 CHKSTART=02/03/96 DOBSTART=02/03/31 AGE=64.999315537 CHKSTART=02/04/96 DOBSTART=02/04/31 AGE=64.999315537 CHKSTART=02/05/96 DOBSTART=02/05/31 AGE=64.999315537 CHKSTART=02/06/96 DOBSTART=02/06/31 AGE=64.999315537 CHKSTART=02/07/96 DOBSTART=02/07/31 AGE=64.999315537 CHKSTART=02/08/96 DOBSTART=02/08/31 AGE=64.999315537 CHKSTART=02/09/96 DOBSTART=02/09/31 AGE=64.999315537 CHKSTART=02/10/96 DOBSTART=02/10/31 AGE=64.999315537 CHKSTART=02/11/96 DOBSTART=02/11/31 AGE=64.999315537 CHKSTART=02/12/96 DOBSTART=02/12/31 AGE=64.999315537 CHKSTART=02/13/96 DOBSTART=02/13/31 AGE=64.999315537 CHKSTART=02/14/96 DOBSTART=02/14/31 AGE=64.999315537 CHKSTART=02/15/96 DOBSTART=02/15/31 AGE=64.999315537 CHKSTART=02/16/96 DOBSTART=02/16/31 AGE=64.999315537 CHKSTART=02/17/96 DOBSTART=02/17/31 AGE=64.999315537 CHKSTART=02/18/96 DOBSTART=02/18/31 AGE=64.999315537 CHKSTART=02/19/96 DOBSTART=02/19/31 AGE=64.999315537 CHKSTART=02/20/96 DOBSTART=02/20/31 AGE=64.999315537 CHKSTART=02/21/96 DOBSTART=02/21/31 AGE=64.999315537 CHKSTART=02/22/96 DOBSTART=02/22/31 AGE=64.999315537 CHKSTART=02/23/96 DOBSTART=02/23/31 AGE=64.999315537 CHKSTART=02/24/96 DOBSTART=02/24/31 AGE=64.999315537 CHKSTART=02/25/96 DOBSTART=02/25/31 AGE=64.999315537 CHKSTART=02/26/96 DOBSTART=02/26/31 AGE=64.999315537 CHKSTART=02/27/96 DOBSTART=02/27/31 AGE=64.999315537 CHKSTART=02/28/96 DOBSTART=02/28/31 AGE=64.999315537 NOTE: The data set WORK.TEST3 has 1 observations and 6 variables. NOTE: The DATA statement used 0.55 seconds. 75 76 77 /* Step TEST4 shows what happens when you attempt to calculate the age for */ 78 /* benes born during 1931 (non-leap year), but who were born AFTER february 29, 1931. */ 79 /* In this example, I am using a LEAP YEAR (1996) to compare against */ 80 81 data test4; 82 chkstart= mdy(03,01,96); 83 chkend = mdy(12,31,96); 84 dobstart = mdy(03,01,31); 85 dobend = mdy(12,31,31); 86 87 format chkstart dobstart mmddyy8.; 88 89 do i = chkstart to chkend; 90 if i = mdy(03,01,96) then 91 age = (chkstart- dobstart) / 365.25; 92 else if i > mdy(03,01,96) then 93 do; 94 dobstart=dobstart+1; 95 chkstart=chkstart+1; 96 age = (chkstart- dobstart) / 365.25; 97 end; 98 put chkstart= dobstart= age=; 99 end; 100 run; CHKSTART=03/01/96 DOBSTART=03/01/31 AGE=65.002053388 CHKSTART=03/02/96 DOBSTART=03/02/31 AGE=65.002053388 CHKSTART=03/03/96 DOBSTART=03/03/31 AGE=65.002053388 CHKSTART=03/04/96 DOBSTART=03/04/31 AGE=65.002053388 CHKSTART=03/05/96 DOBSTART=03/05/31 AGE=65.002053388 CHKSTART=03/06/96 DOBSTART=03/06/31 AGE=65.002053388 CHKSTART=03/07/96 DOBSTART=03/07/31 AGE=65.002053388 CHKSTART=03/08/96 DOBSTART=03/08/31 AGE=65.002053388 CHKSTART=03/09/96 DOBSTART=03/09/31 AGE=65.002053388 CHKSTART=03/10/96 DOBSTART=03/10/31 AGE=65.002053388 CHKSTART=03/11/96 DOBSTART=03/11/31 AGE=65.002053388 CHKSTART=03/12/96 DOBSTART=03/12/31 AGE=65.002053388 CHKSTART=03/13/96 DOBSTART=03/13/31 AGE=65.002053388 CHKSTART=03/14/96 DOBSTART=03/14/31 AGE=65.002053388 CHKSTART=03/15/96 DOBSTART=03/15/31 AGE=65.002053388 CHKSTART=03/16/96 DOBSTART=03/16/31 AGE=65.002053388 CHKSTART=03/17/96 DOBSTART=03/17/31 AGE=65.002053388 CHKSTART=03/18/96 DOBSTART=03/18/31 AGE=65.002053388 CHKSTART=03/19/96 DOBSTART=03/19/31 AGE=65.002053388 CHKSTART=03/20/96 DOBSTART=03/20/31 AGE=65.002053388 CHKSTART=03/21/96 DOBSTART=03/21/31 AGE=65.002053388 CHKSTART=03/22/96 DOBSTART=03/22/31 AGE=65.002053388 CHKSTART=03/23/96 DOBSTART=03/23/31 AGE=65.002053388 CHKSTART=03/24/96 DOBSTART=03/24/31 AGE=65.002053388 CHKSTART=03/25/96 DOBSTART=03/25/31 AGE=65.002053388 CHKSTART=03/26/96 DOBSTART=03/26/31 AGE=65.002053388 CHKSTART=03/27/96 DOBSTART=03/27/31 AGE=65.002053388 CHKSTART=03/28/96 DOBSTART=03/28/31 AGE=65.002053388 CHKSTART=03/29/96 DOBSTART=03/29/31 AGE=65.002053388 CHKSTART=03/30/96 DOBSTART=03/30/31 AGE=65.002053388 CHKSTART=03/31/96 DOBSTART=03/31/31 AGE=65.002053388 CHKSTART=04/01/96 DOBSTART=04/01/31 AGE=65.002053388 CHKSTART=04/02/96 DOBSTART=04/02/31 AGE=65.002053388 CHKSTART=04/03/96 DOBSTART=04/03/31 AGE=65.002053388 CHKSTART=04/04/96 DOBSTART=04/04/31 AGE=65.002053388 CHKSTART=04/05/96 DOBSTART=04/05/31 AGE=65.002053388 CHKSTART=04/06/96 DOBSTART=04/06/31 AGE=65.002053388 CHKSTART=04/07/96 DOBSTART=04/07/31 AGE=65.002053388 CHKSTART=04/08/96 DOBSTART=04/08/31 AGE=65.002053388 CHKSTART=04/09/96 DOBSTART=04/09/31 AGE=65.002053388 CHKSTART=04/10/96 DOBSTART=04/10/31 AGE=65.002053388 CHKSTART=04/11/96 DOBSTART=04/11/31 AGE=65.002053388 CHKSTART=04/12/96 DOBSTART=04/12/31 AGE=65.002053388 CHKSTART=04/13/96 DOBSTART=04/13/31 AGE=65.002053388 CHKSTART=04/14/96 DOBSTART=04/14/31 AGE=65.002053388 CHKSTART=04/15/96 DOBSTART=04/15/31 AGE=65.002053388 CHKSTART=04/16/96 DOBSTART=04/16/31 AGE=65.002053388 CHKSTART=04/17/96 DOBSTART=04/17/31 AGE=65.002053388 CHKSTART=04/18/96 DOBSTART=04/18/31 AGE=65.002053388 CHKSTART=04/19/96 DOBSTART=04/19/31 AGE=65.002053388 CHKSTART=04/20/96 DOBSTART=04/20/31 AGE=65.002053388 CHKSTART=04/21/96 DOBSTART=04/21/31 AGE=65.002053388 CHKSTART=04/22/96 DOBSTART=04/22/31 AGE=65.002053388 CHKSTART=04/23/96 DOBSTART=04/23/31 AGE=65.002053388 CHKSTART=04/24/96 DOBSTART=04/24/31 AGE=65.002053388 CHKSTART=04/25/96 DOBSTART=04/25/31 AGE=65.002053388 CHKSTART=04/26/96 DOBSTART=04/26/31 AGE=65.002053388 CHKSTART=04/27/96 DOBSTART=04/27/31 AGE=65.002053388 CHKSTART=04/28/96 DOBSTART=04/28/31 AGE=65.002053388 CHKSTART=04/29/96 DOBSTART=04/29/31 AGE=65.002053388 CHKSTART=04/30/96 DOBSTART=04/30/31 AGE=65.002053388 CHKSTART=05/01/96 DOBSTART=05/01/31 AGE=65.002053388 CHKSTART=05/02/96 DOBSTART=05/02/31 AGE=65.002053388 CHKSTART=05/03/96 DOBSTART=05/03/31 AGE=65.002053388 CHKSTART=05/04/96 DOBSTART=05/04/31 AGE=65.002053388 CHKSTART=05/05/96 DOBSTART=05/05/31 AGE=65.002053388 CHKSTART=05/06/96 DOBSTART=05/06/31 AGE=65.002053388 CHKSTART=05/07/96 DOBSTART=05/07/31 AGE=65.002053388 CHKSTART=05/08/96 DOBSTART=05/08/31 AGE=65.002053388 CHKSTART=05/09/96 DOBSTART=05/09/31 AGE=65.002053388 CHKSTART=05/10/96 DOBSTART=05/10/31 AGE=65.002053388 CHKSTART=05/11/96 DOBSTART=05/11/31 AGE=65.002053388 CHKSTART=05/12/96 DOBSTART=05/12/31 AGE=65.002053388 CHKSTART=05/13/96 DOBSTART=05/13/31 AGE=65.002053388 CHKSTART=05/14/96 DOBSTART=05/14/31 AGE=65.002053388 CHKSTART=05/15/96 DOBSTART=05/15/31 AGE=65.002053388 CHKSTART=05/16/96 DOBSTART=05/16/31 AGE=65.002053388 CHKSTART=05/17/96 DOBSTART=05/17/31 AGE=65.002053388 CHKSTART=05/18/96 DOBSTART=05/18/31 AGE=65.002053388 CHKSTART=05/19/96 DOBSTART=05/19/31 AGE=65.002053388 CHKSTART=05/20/96 DOBSTART=05/20/31 AGE=65.002053388 CHKSTART=05/21/96 DOBSTART=05/21/31 AGE=65.002053388 CHKSTART=05/22/96 DOBSTART=05/22/31 AGE=65.002053388 CHKSTART=05/23/96 DOBSTART=05/23/31 AGE=65.002053388 CHKSTART=05/24/96 DOBSTART=05/24/31 AGE=65.002053388 CHKSTART=05/25/96 DOBSTART=05/25/31 AGE=65.002053388 CHKSTART=05/26/96 DOBSTART=05/26/31 AGE=65.002053388 CHKSTART=05/27/96 DOBSTART=05/27/31 AGE=65.002053388 CHKSTART=05/28/96 DOBSTART=05/28/31 AGE=65.002053388 CHKSTART=05/29/96 DOBSTART=05/29/31 AGE=65.002053388 CHKSTART=05/30/96 DOBSTART=05/30/31 AGE=65.002053388 CHKSTART=05/31/96 DOBSTART=05/31/31 AGE=65.002053388 CHKSTART=06/01/96 DOBSTART=06/01/31 AGE=65.002053388 CHKSTART=06/02/96 DOBSTART=06/02/31 AGE=65.002053388 CHKSTART=06/03/96 DOBSTART=06/03/31 AGE=65.002053388 CHKSTART=06/04/96 DOBSTART=06/04/31 AGE=65.002053388 CHKSTART=06/05/96 DOBSTART=06/05/31 AGE=65.002053388 CHKSTART=06/06/96 DOBSTART=06/06/31 AGE=65.002053388 CHKSTART=06/07/96 DOBSTART=06/07/31 AGE=65.002053388 CHKSTART=06/08/96 DOBSTART=06/08/31 AGE=65.002053388 CHKSTART=06/09/96 DOBSTART=06/09/31 AGE=65.002053388 CHKSTART=06/10/96 DOBSTART=06/10/31 AGE=65.002053388 CHKSTART=06/11/96 DOBSTART=06/11/31 AGE=65.002053388 CHKSTART=06/12/96 DOBSTART=06/12/31 AGE=65.002053388 CHKSTART=06/13/96 DOBSTART=06/13/31 AGE=65.002053388 CHKSTART=06/14/96 DOBSTART=06/14/31 AGE=65.002053388 CHKSTART=06/15/96 DOBSTART=06/15/31 AGE=65.002053388 CHKSTART=06/16/96 DOBSTART=06/16/31 AGE=65.002053388 CHKSTART=06/17/96 DOBSTART=06/17/31 AGE=65.002053388 CHKSTART=06/18/96 DOBSTART=06/18/31 AGE=65.002053388 CHKSTART=06/19/96 DOBSTART=06/19/31 AGE=65.002053388 CHKSTART=06/20/96 DOBSTART=06/20/31 AGE=65.002053388 CHKSTART=06/21/96 DOBSTART=06/21/31 AGE=65.002053388 CHKSTART=06/22/96 DOBSTART=06/22/31 AGE=65.002053388 CHKSTART=06/23/96 DOBSTART=06/23/31 AGE=65.002053388 CHKSTART=06/24/96 DOBSTART=06/24/31 AGE=65.002053388 CHKSTART=06/25/96 DOBSTART=06/25/31 AGE=65.002053388 CHKSTART=06/26/96 DOBSTART=06/26/31 AGE=65.002053388 CHKSTART=06/27/96 DOBSTART=06/27/31 AGE=65.002053388 CHKSTART=06/28/96 DOBSTART=06/28/31 AGE=65.002053388 CHKSTART=06/29/96 DOBSTART=06/29/31 AGE=65.002053388 CHKSTART=06/30/96 DOBSTART=06/30/31 AGE=65.002053388 CHKSTART=07/01/96 DOBSTART=07/01/31 AGE=65.002053388 CHKSTART=07/02/96 DOBSTART=07/02/31 AGE=65.002053388 CHKSTART=07/03/96 DOBSTART=07/03/31 AGE=65.002053388 CHKSTART=07/04/96 DOBSTART=07/04/31 AGE=65.002053388 CHKSTART=07/05/96 DOBSTART=07/05/31 AGE=65.002053388 CHKSTART=07/06/96 DOBSTART=07/06/31 AGE=65.002053388 CHKSTART=07/07/96 DOBSTART=07/07/31 AGE=65.002053388 CHKSTART=07/08/96 DOBSTART=07/08/31 AGE=65.002053388 CHKSTART=07/09/96 DOBSTART=07/09/31 AGE=65.002053388 CHKSTART=07/10/96 DOBSTART=07/10/31 AGE=65.002053388 CHKSTART=07/11/96 DOBSTART=07/11/31 AGE=65.002053388 CHKSTART=07/12/96 DOBSTART=07/12/31 AGE=65.002053388 CHKSTART=07/13/96 DOBSTART=07/13/31 AGE=65.002053388 CHKSTART=07/14/96 DOBSTART=07/14/31 AGE=65.002053388 CHKSTART=07/15/96 DOBSTART=07/15/31 AGE=65.002053388 CHKSTART=07/16/96 DOBSTART=07/16/31 AGE=65.002053388 CHKSTART=07/17/96 DOBSTART=07/17/31 AGE=65.002053388 CHKSTART=07/18/96 DOBSTART=07/18/31 AGE=65.002053388 CHKSTART=07/19/96 DOBSTART=07/19/31 AGE=65.002053388 CHKSTART=07/20/96 DOBSTART=07/20/31 AGE=65.002053388 CHKSTART=07/21/96 DOBSTART=07/21/31 AGE=65.002053388 CHKSTART=07/22/96 DOBSTART=07/22/31 AGE=65.002053388 CHKSTART=07/23/96 DOBSTART=07/23/31 AGE=65.002053388 CHKSTART=07/24/96 DOBSTART=07/24/31 AGE=65.002053388 CHKSTART=07/25/96 DOBSTART=07/25/31 AGE=65.002053388 CHKSTART=07/26/96 DOBSTART=07/26/31 AGE=65.002053388 CHKSTART=07/27/96 DOBSTART=07/27/31 AGE=65.002053388 CHKSTART=07/28/96 DOBSTART=07/28/31 AGE=65.002053388 CHKSTART=07/29/96 DOBSTART=07/29/31 AGE=65.002053388 CHKSTART=07/30/96 DOBSTART=07/30/31 AGE=65.002053388 CHKSTART=07/31/96 DOBSTART=07/31/31 AGE=65.002053388 CHKSTART=08/01/96 DOBSTART=08/01/31 AGE=65.002053388 CHKSTART=08/02/96 DOBSTART=08/02/31 AGE=65.002053388 CHKSTART=08/03/96 DOBSTART=08/03/31 AGE=65.002053388 CHKSTART=08/04/96 DOBSTART=08/04/31 AGE=65.002053388 CHKSTART=08/05/96 DOBSTART=08/05/31 AGE=65.002053388 CHKSTART=08/06/96 DOBSTART=08/06/31 AGE=65.002053388 CHKSTART=08/07/96 DOBSTART=08/07/31 AGE=65.002053388 CHKSTART=08/08/96 DOBSTART=08/08/31 AGE=65.002053388 CHKSTART=08/09/96 DOBSTART=08/09/31 AGE=65.002053388 CHKSTART=08/10/96 DOBSTART=08/10/31 AGE=65.002053388 CHKSTART=08/11/96 DOBSTART=08/11/31 AGE=65.002053388 CHKSTART=08/12/96 DOBSTART=08/12/31 AGE=65.002053388 CHKSTART=08/13/96 DOBSTART=08/13/31 AGE=65.002053388 CHKSTART=08/14/96 DOBSTART=08/14/31 AGE=65.002053388 CHKSTART=08/15/96 DOBSTART=08/15/31 AGE=65.002053388 CHKSTART=08/16/96 DOBSTART=08/16/31 AGE=65.002053388 CHKSTART=08/17/96 DOBSTART=08/17/31 AGE=65.002053388 CHKSTART=08/18/96 DOBSTART=08/18/31 AGE=65.002053388 CHKSTART=08/19/96 DOBSTART=08/19/31 AGE=65.002053388 CHKSTART=08/20/96 DOBSTART=08/20/31 AGE=65.002053388 CHKSTART=08/21/96 DOBSTART=08/21/31 AGE=65.002053388 CHKSTART=08/22/96 DOBSTART=08/22/31 AGE=65.002053388 CHKSTART=08/23/96 DOBSTART=08/23/31 AGE=65.002053388 CHKSTART=08/24/96 DOBSTART=08/24/31 AGE=65.002053388 CHKSTART=08/25/96 DOBSTART=08/25/31 AGE=65.002053388 CHKSTART=08/26/96 DOBSTART=08/26/31 AGE=65.002053388 CHKSTART=08/27/96 DOBSTART=08/27/31 AGE=65.002053388 CHKSTART=08/28/96 DOBSTART=08/28/31 AGE=65.002053388 CHKSTART=08/29/96 DOBSTART=08/29/31 AGE=65.002053388 CHKSTART=08/30/96 DOBSTART=08/30/31 AGE=65.002053388 CHKSTART=08/31/96 DOBSTART=08/31/31 AGE=65.002053388 CHKSTART=09/01/96 DOBSTART=09/01/31 AGE=65.002053388 CHKSTART=09/02/96 DOBSTART=09/02/31 AGE=65.002053388 CHKSTART=09/03/96 DOBSTART=09/03/31 AGE=65.002053388 CHKSTART=09/04/96 DOBSTART=09/04/31 AGE=65.002053388 CHKSTART=09/05/96 DOBSTART=09/05/31 AGE=65.002053388 CHKSTART=09/06/96 DOBSTART=09/06/31 AGE=65.002053388 CHKSTART=09/07/96 DOBSTART=09/07/31 AGE=65.002053388 CHKSTART=09/08/96 DOBSTART=09/08/31 AGE=65.002053388 CHKSTART=09/09/96 DOBSTART=09/09/31 AGE=65.002053388 CHKSTART=09/10/96 DOBSTART=09/10/31 AGE=65.002053388 CHKSTART=09/11/96 DOBSTART=09/11/31 AGE=65.002053388 CHKSTART=09/12/96 DOBSTART=09/12/31 AGE=65.002053388 CHKSTART=09/13/96 DOBSTART=09/13/31 AGE=65.002053388 CHKSTART=09/14/96 DOBSTART=09/14/31 AGE=65.002053388 CHKSTART=09/15/96 DOBSTART=09/15/31 AGE=65.002053388 CHKSTART=09/16/96 DOBSTART=09/16/31 AGE=65.002053388 CHKSTART=09/17/96 DOBSTART=09/17/31 AGE=65.002053388 CHKSTART=09/18/96 DOBSTART=09/18/31 AGE=65.002053388 CHKSTART=09/19/96 DOBSTART=09/19/31 AGE=65.002053388 CHKSTART=09/20/96 DOBSTART=09/20/31 AGE=65.002053388 CHKSTART=09/21/96 DOBSTART=09/21/31 AGE=65.002053388 CHKSTART=09/22/96 DOBSTART=09/22/31 AGE=65.002053388 CHKSTART=09/23/96 DOBSTART=09/23/31 AGE=65.002053388 CHKSTART=09/24/96 DOBSTART=09/24/31 AGE=65.002053388 CHKSTART=09/25/96 DOBSTART=09/25/31 AGE=65.002053388 CHKSTART=09/26/96 DOBSTART=09/26/31 AGE=65.002053388 CHKSTART=09/27/96 DOBSTART=09/27/31 AGE=65.002053388 CHKSTART=09/28/96 DOBSTART=09/28/31 AGE=65.002053388 CHKSTART=09/29/96 DOBSTART=09/29/31 AGE=65.002053388 CHKSTART=09/30/96 DOBSTART=09/30/31 AGE=65.002053388 CHKSTART=10/01/96 DOBSTART=10/01/31 AGE=65.002053388 CHKSTART=10/02/96 DOBSTART=10/02/31 AGE=65.002053388 CHKSTART=10/03/96 DOBSTART=10/03/31 AGE=65.002053388 CHKSTART=10/04/96 DOBSTART=10/04/31 AGE=65.002053388 CHKSTART=10/05/96 DOBSTART=10/05/31 AGE=65.002053388 CHKSTART=10/06/96 DOBSTART=10/06/31 AGE=65.002053388 CHKSTART=10/07/96 DOBSTART=10/07/31 AGE=65.002053388 CHKSTART=10/08/96 DOBSTART=10/08/31 AGE=65.002053388 CHKSTART=10/09/96 DOBSTART=10/09/31 AGE=65.002053388 CHKSTART=10/10/96 DOBSTART=10/10/31 AGE=65.002053388 CHKSTART=10/11/96 DOBSTART=10/11/31 AGE=65.002053388 CHKSTART=10/12/96 DOBSTART=10/12/31 AGE=65.002053388 CHKSTART=10/13/96 DOBSTART=10/13/31 AGE=65.002053388 CHKSTART=10/14/96 DOBSTART=10/14/31 AGE=65.002053388 CHKSTART=10/15/96 DOBSTART=10/15/31 AGE=65.002053388 CHKSTART=10/16/96 DOBSTART=10/16/31 AGE=65.002053388 CHKSTART=10/17/96 DOBSTART=10/17/31 AGE=65.002053388 CHKSTART=10/18/96 DOBSTART=10/18/31 AGE=65.002053388 CHKSTART=10/19/96 DOBSTART=10/19/31 AGE=65.002053388 CHKSTART=10/20/96 DOBSTART=10/20/31 AGE=65.002053388 CHKSTART=10/21/96 DOBSTART=10/21/31 AGE=65.002053388 CHKSTART=10/22/96 DOBSTART=10/22/31 AGE=65.002053388 CHKSTART=10/23/96 DOBSTART=10/23/31 AGE=65.002053388 CHKSTART=10/24/96 DOBSTART=10/24/31 AGE=65.002053388 CHKSTART=10/25/96 DOBSTART=10/25/31 AGE=65.002053388 CHKSTART=10/26/96 DOBSTART=10/26/31 AGE=65.002053388 CHKSTART=10/27/96 DOBSTART=10/27/31 AGE=65.002053388 CHKSTART=10/28/96 DOBSTART=10/28/31 AGE=65.002053388 CHKSTART=10/29/96 DOBSTART=10/29/31 AGE=65.002053388 CHKSTART=10/30/96 DOBSTART=10/30/31 AGE=65.002053388 CHKSTART=10/31/96 DOBSTART=10/31/31 AGE=65.002053388 CHKSTART=11/01/96 DOBSTART=11/01/31 AGE=65.002053388 CHKSTART=11/02/96 DOBSTART=11/02/31 AGE=65.002053388 CHKSTART=11/03/96 DOBSTART=11/03/31 AGE=65.002053388 CHKSTART=11/04/96 DOBSTART=11/04/31 AGE=65.002053388 CHKSTART=11/05/96 DOBSTART=11/05/31 AGE=65.002053388 CHKSTART=11/06/96 DOBSTART=11/06/31 AGE=65.002053388 CHKSTART=11/07/96 DOBSTART=11/07/31 AGE=65.002053388 CHKSTART=11/08/96 DOBSTART=11/08/31 AGE=65.002053388 CHKSTART=11/09/96 DOBSTART=11/09/31 AGE=65.002053388 CHKSTART=11/10/96 DOBSTART=11/10/31 AGE=65.002053388 CHKSTART=11/11/96 DOBSTART=11/11/31 AGE=65.002053388 CHKSTART=11/12/96 DOBSTART=11/12/31 AGE=65.002053388 CHKSTART=11/13/96 DOBSTART=11/13/31 AGE=65.002053388 CHKSTART=11/14/96 DOBSTART=11/14/31 AGE=65.002053388 CHKSTART=11/15/96 DOBSTART=11/15/31 AGE=65.002053388 CHKSTART=11/16/96 DOBSTART=11/16/31 AGE=65.002053388 CHKSTART=11/17/96 DOBSTART=11/17/31 AGE=65.002053388 CHKSTART=11/18/96 DOBSTART=11/18/31 AGE=65.002053388 CHKSTART=11/19/96 DOBSTART=11/19/31 AGE=65.002053388 CHKSTART=11/20/96 DOBSTART=11/20/31 AGE=65.002053388 CHKSTART=11/21/96 DOBSTART=11/21/31 AGE=65.002053388 CHKSTART=11/22/96 DOBSTART=11/22/31 AGE=65.002053388 CHKSTART=11/23/96 DOBSTART=11/23/31 AGE=65.002053388 CHKSTART=11/24/96 DOBSTART=11/24/31 AGE=65.002053388 CHKSTART=11/25/96 DOBSTART=11/25/31 AGE=65.002053388 CHKSTART=11/26/96 DOBSTART=11/26/31 AGE=65.002053388 CHKSTART=11/27/96 DOBSTART=11/27/31 AGE=65.002053388 CHKSTART=11/28/96 DOBSTART=11/28/31 AGE=65.002053388 CHKSTART=11/29/96 DOBSTART=11/29/31 AGE=65.002053388 CHKSTART=11/30/96 DOBSTART=11/30/31 AGE=65.002053388 CHKSTART=12/01/96 DOBSTART=12/01/31 AGE=65.002053388 CHKSTART=12/02/96 DOBSTART=12/02/31 AGE=65.002053388 CHKSTART=12/03/96 DOBSTART=12/03/31 AGE=65.002053388 CHKSTART=12/04/96 DOBSTART=12/04/31 AGE=65.002053388 CHKSTART=12/05/96 DOBSTART=12/05/31 AGE=65.002053388 CHKSTART=12/06/96 DOBSTART=12/06/31 AGE=65.002053388 CHKSTART=12/07/96 DOBSTART=12/07/31 AGE=65.002053388 CHKSTART=12/08/96 DOBSTART=12/08/31 AGE=65.002053388 CHKSTART=12/09/96 DOBSTART=12/09/31 AGE=65.002053388 CHKSTART=12/10/96 DOBSTART=12/10/31 AGE=65.002053388 CHKSTART=12/11/96 DOBSTART=12/11/31 AGE=65.002053388 CHKSTART=12/12/96 DOBSTART=12/12/31 AGE=65.002053388 CHKSTART=12/13/96 DOBSTART=12/13/31 AGE=65.002053388 CHKSTART=12/14/96 DOBSTART=12/14/31 AGE=65.002053388 CHKSTART=12/15/96 DOBSTART=12/15/31 AGE=65.002053388 CHKSTART=12/16/96 DOBSTART=12/16/31 AGE=65.002053388 CHKSTART=12/17/96 DOBSTART=12/17/31 AGE=65.002053388 CHKSTART=12/18/96 DOBSTART=12/18/31 AGE=65.002053388 CHKSTART=12/19/96 DOBSTART=12/19/31 AGE=65.002053388 CHKSTART=12/20/96 DOBSTART=12/20/31 AGE=65.002053388 CHKSTART=12/21/96 DOBSTART=12/21/31 AGE=65.002053388 CHKSTART=12/22/96 DOBSTART=12/22/31 AGE=65.002053388 CHKSTART=12/23/96 DOBSTART=12/23/31 AGE=65.002053388 CHKSTART=12/24/96 DOBSTART=12/24/31 AGE=65.002053388 CHKSTART=12/25/96 DOBSTART=12/25/31 AGE=65.002053388 CHKSTART=12/26/96 DOBSTART=12/26/31 AGE=65.002053388 CHKSTART=12/27/96 DOBSTART=12/27/31 AGE=65.002053388 CHKSTART=12/28/96 DOBSTART=12/28/31 AGE=65.002053388 CHKSTART=12/29/96 DOBSTART=12/29/31 AGE=65.002053388 CHKSTART=12/30/96 DOBSTART=12/30/31 AGE=65.002053388 CHKSTART=12/31/96 DOBSTART=12/31/31 AGE=65.002053388 NOTE: The data set WORK.TEST4 has 1 observations and 6 variables. NOTE: The DATA statement used 1.54 seconds. 101 102 /* Step TEST5 shows what happens when you attempt to calculate the age for */ 103 /* benes born during 1932 (leap year) but who were born BEFORE february 29, 1932. */ 104 /* In this example, I am using a LEAP YEAR (1996) to compare against */ 105 106 data test5; 107 chkstart= mdy(01,01,96); 108 chkend = mdy(02,28,96); 109 dobstart = mdy(01,01,32); 110 dobend = mdy(02,28,32); 111 112 format chkstart dobstart mmddyy8.; 113 114 do i = chkstart to chkend; 115 if i = mdy(01,01,96) then 116 age = (chkstart- dobstart) / 365.25; 117 else if i > mdy(01,01,96) then 118 do; 119 dobstart=dobstart+1; 120 chkstart=chkstart+1; 121 age = (chkstart- dobstart) / 365.25; 122 end; 123 put chkstart= dobstart= age=; 124 end; 125 run; CHKSTART=01/01/96 DOBSTART=01/01/32 AGE=64 CHKSTART=01/02/96 DOBSTART=01/02/32 AGE=64 CHKSTART=01/03/96 DOBSTART=01/03/32 AGE=64 CHKSTART=01/04/96 DOBSTART=01/04/32 AGE=64 CHKSTART=01/05/96 DOBSTART=01/05/32 AGE=64 CHKSTART=01/06/96 DOBSTART=01/06/32 AGE=64 CHKSTART=01/07/96 DOBSTART=01/07/32 AGE=64 CHKSTART=01/08/96 DOBSTART=01/08/32 AGE=64 CHKSTART=01/09/96 DOBSTART=01/09/32 AGE=64 CHKSTART=01/10/96 DOBSTART=01/10/32 AGE=64 CHKSTART=01/11/96 DOBSTART=01/11/32 AGE=64 CHKSTART=01/12/96 DOBSTART=01/12/32 AGE=64 CHKSTART=01/13/96 DOBSTART=01/13/32 AGE=64 CHKSTART=01/14/96 DOBSTART=01/14/32 AGE=64 CHKSTART=01/15/96 DOBSTART=01/15/32 AGE=64 CHKSTART=01/16/96 DOBSTART=01/16/32 AGE=64 CHKSTART=01/17/96 DOBSTART=01/17/32 AGE=64 CHKSTART=01/18/96 DOBSTART=01/18/32 AGE=64 CHKSTART=01/19/96 DOBSTART=01/19/32 AGE=64 CHKSTART=01/20/96 DOBSTART=01/20/32 AGE=64 CHKSTART=01/21/96 DOBSTART=01/21/32 AGE=64 CHKSTART=01/22/96 DOBSTART=01/22/32 AGE=64 CHKSTART=01/23/96 DOBSTART=01/23/32 AGE=64 CHKSTART=01/24/96 DOBSTART=01/24/32 AGE=64 CHKSTART=01/25/96 DOBSTART=01/25/32 AGE=64 CHKSTART=01/26/96 DOBSTART=01/26/32 AGE=64 CHKSTART=01/27/96 DOBSTART=01/27/32 AGE=64 CHKSTART=01/28/96 DOBSTART=01/28/32 AGE=64 CHKSTART=01/29/96 DOBSTART=01/29/32 AGE=64 CHKSTART=01/30/96 DOBSTART=01/30/32 AGE=64 CHKSTART=01/31/96 DOBSTART=01/31/32 AGE=64 CHKSTART=02/01/96 DOBSTART=02/01/32 AGE=64 CHKSTART=02/02/96 DOBSTART=02/02/32 AGE=64 CHKSTART=02/03/96 DOBSTART=02/03/32 AGE=64 CHKSTART=02/04/96 DOBSTART=02/04/32 AGE=64 CHKSTART=02/05/96 DOBSTART=02/05/32 AGE=64 CHKSTART=02/06/96 DOBSTART=02/06/32 AGE=64 CHKSTART=02/07/96 DOBSTART=02/07/32 AGE=64 CHKSTART=02/08/96 DOBSTART=02/08/32 AGE=64 CHKSTART=02/09/96 DOBSTART=02/09/32 AGE=64 CHKSTART=02/10/96 DOBSTART=02/10/32 AGE=64 CHKSTART=02/11/96 DOBSTART=02/11/32 AGE=64 CHKSTART=02/12/96 DOBSTART=02/12/32 AGE=64 CHKSTART=02/13/96 DOBSTART=02/13/32 AGE=64 CHKSTART=02/14/96 DOBSTART=02/14/32 AGE=64 CHKSTART=02/15/96 DOBSTART=02/15/32 AGE=64 CHKSTART=02/16/96 DOBSTART=02/16/32 AGE=64 CHKSTART=02/17/96 DOBSTART=02/17/32 AGE=64 CHKSTART=02/18/96 DOBSTART=02/18/32 AGE=64 CHKSTART=02/19/96 DOBSTART=02/19/32 AGE=64 CHKSTART=02/20/96 DOBSTART=02/20/32 AGE=64 CHKSTART=02/21/96 DOBSTART=02/21/32 AGE=64 CHKSTART=02/22/96 DOBSTART=02/22/32 AGE=64 CHKSTART=02/23/96 DOBSTART=02/23/32 AGE=64 CHKSTART=02/24/96 DOBSTART=02/24/32 AGE=64 CHKSTART=02/25/96 DOBSTART=02/25/32 AGE=64 CHKSTART=02/26/96 DOBSTART=02/26/32 AGE=64 CHKSTART=02/27/96 DOBSTART=02/27/32 AGE=64 CHKSTART=02/28/96 DOBSTART=02/28/32 AGE=64 NOTE: The data set WORK.TEST5 has 1 observations and 6 variables. NOTE: The DATA statement used 0.5 seconds. 126 127 /* Step TEST6 shows what happens when you attempt to calculate the age for */ 128 /* benes born during 1932 (leap year) but who were born AFTER february 29, 1932. */ 129 /* In this example, I am using a LEAP YEAR (1996) to compare against */ 130 131 data test6; 132 chkstart= mdy(03,01,96); 133 chkend = mdy(12,31,96); 134 dobstart = mdy(03,01,32); 135 dobend = mdy(12,31,32); 136 137 format chkstart dobstart mmddyy8.; 138 139 do i = chkstart to chkend; 140 if i = mdy(03,01,96) then 141 age = (chkstart- dobstart) / 365.25; 142 else if i > mdy(03,01,96) then 143 do; 144 dobstart=dobstart+1; 145 chkstart=chkstart+1; 146 age = (chkstart- dobstart) / 365.25; 147 end; 148 put chkstart= dobstart= age=; 149 end; 150 run; CHKSTART=03/01/96 DOBSTART=03/01/32 AGE=64 CHKSTART=03/02/96 DOBSTART=03/02/32 AGE=64 CHKSTART=03/03/96 DOBSTART=03/03/32 AGE=64 CHKSTART=03/04/96 DOBSTART=03/04/32 AGE=64 CHKSTART=03/05/96 DOBSTART=03/05/32 AGE=64 CHKSTART=03/06/96 DOBSTART=03/06/32 AGE=64 CHKSTART=03/07/96 DOBSTART=03/07/32 AGE=64 CHKSTART=03/08/96 DOBSTART=03/08/32 AGE=64 CHKSTART=03/09/96 DOBSTART=03/09/32 AGE=64 CHKSTART=03/10/96 DOBSTART=03/10/32 AGE=64 CHKSTART=03/11/96 DOBSTART=03/11/32 AGE=64 CHKSTART=03/12/96 DOBSTART=03/12/32 AGE=64 CHKSTART=03/13/96 DOBSTART=03/13/32 AGE=64 CHKSTART=03/14/96 DOBSTART=03/14/32 AGE=64 CHKSTART=03/15/96 DOBSTART=03/15/32 AGE=64 CHKSTART=03/16/96 DOBSTART=03/16/32 AGE=64 CHKSTART=03/17/96 DOBSTART=03/17/32 AGE=64 CHKSTART=03/18/96 DOBSTART=03/18/32 AGE=64 CHKSTART=03/19/96 DOBSTART=03/19/32 AGE=64 CHKSTART=03/20/96 DOBSTART=03/20/32 AGE=64 CHKSTART=03/21/96 DOBSTART=03/21/32 AGE=64 CHKSTART=03/22/96 DOBSTART=03/22/32 AGE=64 CHKSTART=03/23/96 DOBSTART=03/23/32 AGE=64 CHKSTART=03/24/96 DOBSTART=03/24/32 AGE=64 CHKSTART=03/25/96 DOBSTART=03/25/32 AGE=64 CHKSTART=03/26/96 DOBSTART=03/26/32 AGE=64 CHKSTART=03/27/96 DOBSTART=03/27/32 AGE=64 CHKSTART=03/28/96 DOBSTART=03/28/32 AGE=64 CHKSTART=03/29/96 DOBSTART=03/29/32 AGE=64 CHKSTART=03/30/96 DOBSTART=03/30/32 AGE=64 CHKSTART=03/31/96 DOBSTART=03/31/32 AGE=64 CHKSTART=04/01/96 DOBSTART=04/01/32 AGE=64 CHKSTART=04/02/96 DOBSTART=04/02/32 AGE=64 CHKSTART=04/03/96 DOBSTART=04/03/32 AGE=64 CHKSTART=04/04/96 DOBSTART=04/04/32 AGE=64 CHKSTART=04/05/96 DOBSTART=04/05/32 AGE=64 CHKSTART=04/06/96 DOBSTART=04/06/32 AGE=64 CHKSTART=04/07/96 DOBSTART=04/07/32 AGE=64 CHKSTART=04/08/96 DOBSTART=04/08/32 AGE=64 CHKSTART=04/09/96 DOBSTART=04/09/32 AGE=64 CHKSTART=04/10/96 DOBSTART=04/10/32 AGE=64 CHKSTART=04/11/96 DOBSTART=04/11/32 AGE=64 CHKSTART=04/12/96 DOBSTART=04/12/32 AGE=64 CHKSTART=04/13/96 DOBSTART=04/13/32 AGE=64 CHKSTART=04/14/96 DOBSTART=04/14/32 AGE=64 CHKSTART=04/15/96 DOBSTART=04/15/32 AGE=64 CHKSTART=04/16/96 DOBSTART=04/16/32 AGE=64 CHKSTART=04/17/96 DOBSTART=04/17/32 AGE=64 CHKSTART=04/18/96 DOBSTART=04/18/32 AGE=64 CHKSTART=04/19/96 DOBSTART=04/19/32 AGE=64 CHKSTART=04/20/96 DOBSTART=04/20/32 AGE=64 CHKSTART=04/21/96 DOBSTART=04/21/32 AGE=64 CHKSTART=04/22/96 DOBSTART=04/22/32 AGE=64 CHKSTART=04/23/96 DOBSTART=04/23/32 AGE=64 CHKSTART=04/24/96 DOBSTART=04/24/32 AGE=64 CHKSTART=04/25/96 DOBSTART=04/25/32 AGE=64 CHKSTART=04/26/96 DOBSTART=04/26/32 AGE=64 CHKSTART=04/27/96 DOBSTART=04/27/32 AGE=64 CHKSTART=04/28/96 DOBSTART=04/28/32 AGE=64 CHKSTART=04/29/96 DOBSTART=04/29/32 AGE=64 CHKSTART=04/30/96 DOBSTART=04/30/32 AGE=64 CHKSTART=05/01/96 DOBSTART=05/01/32 AGE=64 CHKSTART=05/02/96 DOBSTART=05/02/32 AGE=64 CHKSTART=05/03/96 DOBSTART=05/03/32 AGE=64 CHKSTART=05/04/96 DOBSTART=05/04/32 AGE=64 CHKSTART=05/05/96 DOBSTART=05/05/32 AGE=64 CHKSTART=05/06/96 DOBSTART=05/06/32 AGE=64 CHKSTART=05/07/96 DOBSTART=05/07/32 AGE=64 CHKSTART=05/08/96 DOBSTART=05/08/32 AGE=64 CHKSTART=05/09/96 DOBSTART=05/09/32 AGE=64 CHKSTART=05/10/96 DOBSTART=05/10/32 AGE=64 CHKSTART=05/11/96 DOBSTART=05/11/32 AGE=64 CHKSTART=05/12/96 DOBSTART=05/12/32 AGE=64 CHKSTART=05/13/96 DOBSTART=05/13/32 AGE=64 CHKSTART=05/14/96 DOBSTART=05/14/32 AGE=64 CHKSTART=05/15/96 DOBSTART=05/15/32 AGE=64 CHKSTART=05/16/96 DOBSTART=05/16/32 AGE=64 CHKSTART=05/17/96 DOBSTART=05/17/32 AGE=64 CHKSTART=05/18/96 DOBSTART=05/18/32 AGE=64 CHKSTART=05/19/96 DOBSTART=05/19/32 AGE=64 CHKSTART=05/20/96 DOBSTART=05/20/32 AGE=64 CHKSTART=05/21/96 DOBSTART=05/21/32 AGE=64 CHKSTART=05/22/96 DOBSTART=05/22/32 AGE=64 CHKSTART=05/23/96 DOBSTART=05/23/32 AGE=64 CHKSTART=05/24/96 DOBSTART=05/24/32 AGE=64 CHKSTART=05/25/96 DOBSTART=05/25/32 AGE=64 CHKSTART=05/26/96 DOBSTART=05/26/32 AGE=64 CHKSTART=05/27/96 DOBSTART=05/27/32 AGE=64 CHKSTART=05/28/96 DOBSTART=05/28/32 AGE=64 CHKSTART=05/29/96 DOBSTART=05/29/32 AGE=64 CHKSTART=05/30/96 DOBSTART=05/30/32 AGE=64 CHKSTART=05/31/96 DOBSTART=05/31/32 AGE=64 CHKSTART=06/01/96 DOBSTART=06/01/32 AGE=64 CHKSTART=06/02/96 DOBSTART=06/02/32 AGE=64 CHKSTART=06/03/96 DOBSTART=06/03/32 AGE=64 CHKSTART=06/04/96 DOBSTART=06/04/32 AGE=64 CHKSTART=06/05/96 DOBSTART=06/05/32 AGE=64 CHKSTART=06/06/96 DOBSTART=06/06/32 AGE=64 CHKSTART=06/07/96 DOBSTART=06/07/32 AGE=64 CHKSTART=06/08/96 DOBSTART=06/08/32 AGE=64 CHKSTART=06/09/96 DOBSTART=06/09/32 AGE=64 CHKSTART=06/10/96 DOBSTART=06/10/32 AGE=64 CHKSTART=06/11/96 DOBSTART=06/11/32 AGE=64 CHKSTART=06/12/96 DOBSTART=06/12/32 AGE=64 CHKSTART=06/13/96 DOBSTART=06/13/32 AGE=64 CHKSTART=06/14/96 DOBSTART=06/14/32 AGE=64 CHKSTART=06/15/96 DOBSTART=06/15/32 AGE=64 CHKSTART=06/16/96 DOBSTART=06/16/32 AGE=64 CHKSTART=06/17/96 DOBSTART=06/17/32 AGE=64 CHKSTART=06/18/96 DOBSTART=06/18/32 AGE=64 CHKSTART=06/19/96 DOBSTART=06/19/32 AGE=64 CHKSTART=06/20/96 DOBSTART=06/20/32 AGE=64 CHKSTART=06/21/96 DOBSTART=06/21/32 AGE=64 CHKSTART=06/22/96 DOBSTART=06/22/32 AGE=64 CHKSTART=06/23/96 DOBSTART=06/23/32 AGE=64 CHKSTART=06/24/96 DOBSTART=06/24/32 AGE=64 CHKSTART=06/25/96 DOBSTART=06/25/32 AGE=64 CHKSTART=06/26/96 DOBSTART=06/26/32 AGE=64 CHKSTART=06/27/96 DOBSTART=06/27/32 AGE=64 CHKSTART=06/28/96 DOBSTART=06/28/32 AGE=64 CHKSTART=06/29/96 DOBSTART=06/29/32 AGE=64 CHKSTART=06/30/96 DOBSTART=06/30/32 AGE=64 CHKSTART=07/01/96 DOBSTART=07/01/32 AGE=64 CHKSTART=07/02/96 DOBSTART=07/02/32 AGE=64 CHKSTART=07/03/96 DOBSTART=07/03/32 AGE=64 CHKSTART=07/04/96 DOBSTART=07/04/32 AGE=64 CHKSTART=07/05/96 DOBSTART=07/05/32 AGE=64 CHKSTART=07/06/96 DOBSTART=07/06/32 AGE=64 CHKSTART=07/07/96 DOBSTART=07/07/32 AGE=64 CHKSTART=07/08/96 DOBSTART=07/08/32 AGE=64 CHKSTART=07/09/96 DOBSTART=07/09/32 AGE=64 CHKSTART=07/10/96 DOBSTART=07/10/32 AGE=64 CHKSTART=07/11/96 DOBSTART=07/11/32 AGE=64 CHKSTART=07/12/96 DOBSTART=07/12/32 AGE=64 CHKSTART=07/13/96 DOBSTART=07/13/32 AGE=64 CHKSTART=07/14/96 DOBSTART=07/14/32 AGE=64 CHKSTART=07/15/96 DOBSTART=07/15/32 AGE=64 CHKSTART=07/16/96 DOBSTART=07/16/32 AGE=64 CHKSTART=07/17/96 DOBSTART=07/17/32 AGE=64 CHKSTART=07/18/96 DOBSTART=07/18/32 AGE=64 CHKSTART=07/19/96 DOBSTART=07/19/32 AGE=64 CHKSTART=07/20/96 DOBSTART=07/20/32 AGE=64 CHKSTART=07/21/96 DOBSTART=07/21/32 AGE=64 CHKSTART=07/22/96 DOBSTART=07/22/32 AGE=64 CHKSTART=07/23/96 DOBSTART=07/23/32 AGE=64 CHKSTART=07/24/96 DOBSTART=07/24/32 AGE=64 CHKSTART=07/25/96 DOBSTART=07/25/32 AGE=64 CHKSTART=07/26/96 DOBSTART=07/26/32 AGE=64 CHKSTART=07/27/96 DOBSTART=07/27/32 AGE=64 CHKSTART=07/28/96 DOBSTART=07/28/32 AGE=64 CHKSTART=07/29/96 DOBSTART=07/29/32 AGE=64 CHKSTART=07/30/96 DOBSTART=07/30/32 AGE=64 CHKSTART=07/31/96 DOBSTART=07/31/32 AGE=64 CHKSTART=08/01/96 DOBSTART=08/01/32 AGE=64 CHKSTART=08/02/96 DOBSTART=08/02/32 AGE=64 CHKSTART=08/03/96 DOBSTART=08/03/32 AGE=64 CHKSTART=08/04/96 DOBSTART=08/04/32 AGE=64 CHKSTART=08/05/96 DOBSTART=08/05/32 AGE=64 CHKSTART=08/06/96 DOBSTART=08/06/32 AGE=64 CHKSTART=08/07/96 DOBSTART=08/07/32 AGE=64 CHKSTART=08/08/96 DOBSTART=08/08/32 AGE=64 CHKSTART=08/09/96 DOBSTART=08/09/32 AGE=64 CHKSTART=08/10/96 DOBSTART=08/10/32 AGE=64 CHKSTART=08/11/96 DOBSTART=08/11/32 AGE=64 CHKSTART=08/12/96 DOBSTART=08/12/32 AGE=64 CHKSTART=08/13/96 DOBSTART=08/13/32 AGE=64 CHKSTART=08/14/96 DOBSTART=08/14/32 AGE=64 CHKSTART=08/15/96 DOBSTART=08/15/32 AGE=64 CHKSTART=08/16/96 DOBSTART=08/16/32 AGE=64 CHKSTART=08/17/96 DOBSTART=08/17/32 AGE=64 CHKSTART=08/18/96 DOBSTART=08/18/32 AGE=64 CHKSTART=08/19/96 DOBSTART=08/19/32 AGE=64 CHKSTART=08/20/96 DOBSTART=08/20/32 AGE=64 CHKSTART=08/21/96 DOBSTART=08/21/32 AGE=64 CHKSTART=08/22/96 DOBSTART=08/22/32 AGE=64 CHKSTART=08/23/96 DOBSTART=08/23/32 AGE=64 CHKSTART=08/24/96 DOBSTART=08/24/32 AGE=64 CHKSTART=08/25/96 DOBSTART=08/25/32 AGE=64 CHKSTART=08/26/96 DOBSTART=08/26/32 AGE=64 CHKSTART=08/27/96 DOBSTART=08/27/32 AGE=64 CHKSTART=08/28/96 DOBSTART=08/28/32 AGE=64 CHKSTART=08/29/96 DOBSTART=08/29/32 AGE=64 CHKSTART=08/30/96 DOBSTART=08/30/32 AGE=64 CHKSTART=08/31/96 DOBSTART=08/31/32 AGE=64 CHKSTART=09/01/96 DOBSTART=09/01/32 AGE=64 CHKSTART=09/02/96 DOBSTART=09/02/32 AGE=64 CHKSTART=09/03/96 DOBSTART=09/03/32 AGE=64 CHKSTART=09/04/96 DOBSTART=09/04/32 AGE=64 CHKSTART=09/05/96 DOBSTART=09/05/32 AGE=64 CHKSTART=09/06/96 DOBSTART=09/06/32 AGE=64 CHKSTART=09/07/96 DOBSTART=09/07/32 AGE=64 CHKSTART=09/08/96 DOBSTART=09/08/32 AGE=64 CHKSTART=09/09/96 DOBSTART=09/09/32 AGE=64 CHKSTART=09/10/96 DOBSTART=09/10/32 AGE=64 CHKSTART=09/11/96 DOBSTART=09/11/32 AGE=64 CHKSTART=09/12/96 DOBSTART=09/12/32 AGE=64 CHKSTART=09/13/96 DOBSTART=09/13/32 AGE=64 CHKSTART=09/14/96 DOBSTART=09/14/32 AGE=64 CHKSTART=09/15/96 DOBSTART=09/15/32 AGE=64 CHKSTART=09/16/96 DOBSTART=09/16/32 AGE=64 CHKSTART=09/17/96 DOBSTART=09/17/32 AGE=64 CHKSTART=09/18/96 DOBSTART=09/18/32 AGE=64 CHKSTART=09/19/96 DOBSTART=09/19/32 AGE=64 CHKSTART=09/20/96 DOBSTART=09/20/32 AGE=64 CHKSTART=09/21/96 DOBSTART=09/21/32 AGE=64 CHKSTART=09/22/96 DOBSTART=09/22/32 AGE=64 CHKSTART=09/23/96 DOBSTART=09/23/32 AGE=64 CHKSTART=09/24/96 DOBSTART=09/24/32 AGE=64 CHKSTART=09/25/96 DOBSTART=09/25/32 AGE=64 CHKSTART=09/26/96 DOBSTART=09/26/32 AGE=64 CHKSTART=09/27/96 DOBSTART=09/27/32 AGE=64 CHKSTART=09/28/96 DOBSTART=09/28/32 AGE=64 CHKSTART=09/29/96 DOBSTART=09/29/32 AGE=64 CHKSTART=09/30/96 DOBSTART=09/30/32 AGE=64 CHKSTART=10/01/96 DOBSTART=10/01/32 AGE=64 CHKSTART=10/02/96 DOBSTART=10/02/32 AGE=64 CHKSTART=10/03/96 DOBSTART=10/03/32 AGE=64 CHKSTART=10/04/96 DOBSTART=10/04/32 AGE=64 CHKSTART=10/05/96 DOBSTART=10/05/32 AGE=64 CHKSTART=10/06/96 DOBSTART=10/06/32 AGE=64 CHKSTART=10/07/96 DOBSTART=10/07/32 AGE=64 CHKSTART=10/08/96 DOBSTART=10/08/32 AGE=64 CHKSTART=10/09/96 DOBSTART=10/09/32 AGE=64 CHKSTART=10/10/96 DOBSTART=10/10/32 AGE=64 CHKSTART=10/11/96 DOBSTART=10/11/32 AGE=64 CHKSTART=10/12/96 DOBSTART=10/12/32 AGE=64 CHKSTART=10/13/96 DOBSTART=10/13/32 AGE=64 CHKSTART=10/14/96 DOBSTART=10/14/32 AGE=64 CHKSTART=10/15/96 DOBSTART=10/15/32 AGE=64 CHKSTART=10/16/96 DOBSTART=10/16/32 AGE=64 CHKSTART=10/17/96 DOBSTART=10/17/32 AGE=64 CHKSTART=10/18/96 DOBSTART=10/18/32 AGE=64 CHKSTART=10/19/96 DOBSTART=10/19/32 AGE=64 CHKSTART=10/20/96 DOBSTART=10/20/32 AGE=64 CHKSTART=10/21/96 DOBSTART=10/21/32 AGE=64 CHKSTART=10/22/96 DOBSTART=10/22/32 AGE=64 CHKSTART=10/23/96 DOBSTART=10/23/32 AGE=64 CHKSTART=10/24/96 DOBSTART=10/24/32 AGE=64 CHKSTART=10/25/96 DOBSTART=10/25/32 AGE=64 CHKSTART=10/26/96 DOBSTART=10/26/32 AGE=64 CHKSTART=10/27/96 DOBSTART=10/27/32 AGE=64 CHKSTART=10/28/96 DOBSTART=10/28/32 AGE=64 CHKSTART=10/29/96 DOBSTART=10/29/32 AGE=64 CHKSTART=10/30/96 DOBSTART=10/30/32 AGE=64 CHKSTART=10/31/96 DOBSTART=10/31/32 AGE=64 CHKSTART=11/01/96 DOBSTART=11/01/32 AGE=64 CHKSTART=11/02/96 DOBSTART=11/02/32 AGE=64 CHKSTART=11/03/96 DOBSTART=11/03/32 AGE=64 CHKSTART=11/04/96 DOBSTART=11/04/32 AGE=64 CHKSTART=11/05/96 DOBSTART=11/05/32 AGE=64 CHKSTART=11/06/96 DOBSTART=11/06/32 AGE=64 CHKSTART=11/07/96 DOBSTART=11/07/32 AGE=64 CHKSTART=11/08/96 DOBSTART=11/08/32 AGE=64 CHKSTART=11/09/96 DOBSTART=11/09/32 AGE=64 CHKSTART=11/10/96 DOBSTART=11/10/32 AGE=64 CHKSTART=11/11/96 DOBSTART=11/11/32 AGE=64 CHKSTART=11/12/96 DOBSTART=11/12/32 AGE=64 CHKSTART=11/13/96 DOBSTART=11/13/32 AGE=64 CHKSTART=11/14/96 DOBSTART=11/14/32 AGE=64 CHKSTART=11/15/96 DOBSTART=11/15/32 AGE=64 CHKSTART=11/16/96 DOBSTART=11/16/32 AGE=64 CHKSTART=11/17/96 DOBSTART=11/17/32 AGE=64 CHKSTART=11/18/96 DOBSTART=11/18/32 AGE=64 CHKSTART=11/19/96 DOBSTART=11/19/32 AGE=64 CHKSTART=11/20/96 DOBSTART=11/20/32 AGE=64 CHKSTART=11/21/96 DOBSTART=11/21/32 AGE=64 CHKSTART=11/22/96 DOBSTART=11/22/32 AGE=64 CHKSTART=11/23/96 DOBSTART=11/23/32 AGE=64 CHKSTART=11/24/96 DOBSTART=11/24/32 AGE=64 CHKSTART=11/25/96 DOBSTART=11/25/32 AGE=64 CHKSTART=11/26/96 DOBSTART=11/26/32 AGE=64 CHKSTART=11/27/96 DOBSTART=11/27/32 AGE=64 CHKSTART=11/28/96 DOBSTART=11/28/32 AGE=64 CHKSTART=11/29/96 DOBSTART=11/29/32 AGE=64 CHKSTART=11/30/96 DOBSTART=11/30/32 AGE=64 CHKSTART=12/01/96 DOBSTART=12/01/32 AGE=64 CHKSTART=12/02/96 DOBSTART=12/02/32 AGE=64 CHKSTART=12/03/96 DOBSTART=12/03/32 AGE=64 CHKSTART=12/04/96 DOBSTART=12/04/32 AGE=64 CHKSTART=12/05/96 DOBSTART=12/05/32 AGE=64 CHKSTART=12/06/96 DOBSTART=12/06/32 AGE=64 CHKSTART=12/07/96 DOBSTART=12/07/32 AGE=64 CHKSTART=12/08/96 DOBSTART=12/08/32 AGE=64 CHKSTART=12/09/96 DOBSTART=12/09/32 AGE=64 CHKSTART=12/10/96 DOBSTART=12/10/32 AGE=64 CHKSTART=12/11/96 DOBSTART=12/11/32 AGE=64 CHKSTART=12/12/96 DOBSTART=12/12/32 AGE=64 CHKSTART=12/13/96 DOBSTART=12/13/32 AGE=64 CHKSTART=12/14/96 DOBSTART=12/14/32 AGE=64 CHKSTART=12/15/96 DOBSTART=12/15/32 AGE=64 CHKSTART=12/16/96 DOBSTART=12/16/32 AGE=64 CHKSTART=12/17/96 DOBSTART=12/17/32 AGE=64 CHKSTART=12/18/96 DOBSTART=12/18/32 AGE=64 CHKSTART=12/19/96 DOBSTART=12/19/32 AGE=64 CHKSTART=12/20/96 DOBSTART=12/20/32 AGE=64 CHKSTART=12/21/96 DOBSTART=12/21/32 AGE=64 CHKSTART=12/22/96 DOBSTART=12/22/32 AGE=64 CHKSTART=12/23/96 DOBSTART=12/23/32 AGE=64 CHKSTART=12/24/96 DOBSTART=12/24/32 AGE=64 CHKSTART=12/25/96 DOBSTART=12/25/32 AGE=64 CHKSTART=12/26/96 DOBSTART=12/26/32 AGE=64 CHKSTART=12/27/96 DOBSTART=12/27/32 AGE=64 CHKSTART=12/28/96 DOBSTART=12/28/32 AGE=64 CHKSTART=12/29/96 DOBSTART=12/29/32 AGE=64 CHKSTART=12/30/96 DOBSTART=12/30/32 AGE=64 CHKSTART=12/31/96 DOBSTART=12/31/32 AGE=64 NOTE: The data set WORK.TEST6 has 1 observations and 6 variables. NOTE: The DATA statement used 1.26 seconds. AGESTAND.SAS [application/octet-stream] ```

Back to: Top of message | Previous page | Main SAS-L page