I am trying in SAS to convert my column name BTH_DT to an age and used this code: bth_dt = int(datediff("m",[bth_dt],date())/12) this is contained in my proc sql statement which is proc sql; (select distinct memberid, fst_srvc_dt, bth_dt = int(datediff("m",[bth_dt],date())/12), member_gender_cd from inpatient rest of code the entire code works great if I take out the converting to age. It will give me all columns and the bth_dt column. but when i add this code in I get an error something expected between bth_dt and = just not sure how to code this quite right
... View more