I would just point out with the above solution that it may not work on all events. The documentation from SAS on the YRDIF function indicates to use the 'AGE' parameter rather than actual: http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1pmmr2dtec32an1vbsqmm3abil5.htm Personally I prefer to stick with an old tried and tested formula: https://kb.iu.edu/d/aczw Either can be used replacing the text before as Age.
... View more