I am using IBM DataStage
Below is transformer stage expression, where I have date from Link_4.DOB
with format of %yyyy%mm%dd (20231221)
. I want to calculate the age:
Below is my simple try, but it's not an accurate DOB
YearFromDate(CurrentDate()) - YearFromDate(StringToDate(Link_4.DOB, "%yyyy%mm%dd"))
Is it possible to calculate the exact age based on the expression supported by DataStage?