*
;

  /*Subject: Re: Formula for age calculation in old manuals.
    From: Ian Whitlock 
    Subject: Re: Formula for age calculation in old manuals.
    Summary: One of the pearls of SAS-L
    Around December 1993, Billy Kreuter gave what I consider the simplest
    most accurate way to calculate age. Here it is as a macro function.
    
    Ian Whitlock    */
      
      %macro age (birth,ref) ;
        %* One line exact age calculation due to Billy Kreuter (SAS-L) ;
        %* Use it as function where functions can be used, e.g. DATA step ;
        %*     ex:  age = %age ( birth , today() ) 
        int((intck('month',&birth,&ref)-(day(&birth)>day(&ref)))/12);
      %mend  age ;
    
*
;