简体   繁体   中英

Calculating AGE in completed in SAS

I have a date of birth variable in my dataset, however, the reference date 2FEB2022 is not in the dataset and I would like to calculate age. How do you calculate age in completed years?

它会是这样的,虽然我面前没有 SAS 来测试,所以我的语法可能有点错误:

AGE=INTCK('YEAR',DateOfBirth,'02FEB2022'd,'C');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM