Hi, Using this syntax in SAS Age= (graduationdate-dob)/365.25; and using the equivalent in spss Compute Age= (graduationdate-dob)/365.25. I get the same exact result. In SPSS, the present code takes into account leap year. but the issue is in SAS to accurately calculate age while taking into acount leap year the folllowing should be used syntax 3- Age= ('year' dob, graduationdate, 'continuous') OR syntax 3- Age= intck('year', dob, graduationdate) - (put(dob, mmddyy4.) > put(graduationdate, mmddyy4.)). However results from syntax3 or syntax4 are not similar to that of the SPSS code. Does anyone know why this discrepancy? thanks.
... View more