Proc-sql如何使用生日提取超过18岁的成员记录



列如何列出出生日期

出生日期1933-11-251924-04-041951-11-151933-11-251956-11-201956-11-201942-02-251945-05-031954-09-161956-04-091952-02-151952-02-15

proc-sql;从表中选择*其中birth_ date>18岁;退出

您可以使用INTNX((函数来查找截止日期。

where birth_date <= intnx('year',today(),-18,'same')

最新更新