Greetings, How do I calculate age while using a connection to teradata date of birth field. This is what I tried so far, It is embded PROC SQL; CONNECT TO teradata (AUTHDOMAIN=TeradataAuth TDPID=XYZ2 MODE=TERADATA CONNECTION=GLOBAL); . .. ... select DMA.MCID ,frfm.HCC_CD ,DMA.GNDR_NM ,floor ((intck('month',DMA.MBR_BRTH_DT,today()) - (day(today()) < day(DMA.MBR_BRTH_DT))) / 12) as age ,INCRD_YEAR_MNTH_NBR ,case when max(PRORTD_MBR_MNTH_CNT) >0 then 1 else 0 END AS PRORTD_MBR_MNTH_CNT ERROR: Teradata prepare: Syntax error: expected something between '(' and the string 'month'.
... View more