Calculate Age
Posted: April 28th, 2015, 1:33 am
Attempting to calculate the age based on dates which have been entered by a user using the date picker.
The items are 8 character numeric and reside within different records.
The calculation is carried out within a roster.
PROC AGE
preproc
$ = datediff(DATEOFBIRTH(currIdx),INTERVIEWDATE(currIdx),"y");
When I run this code the age field remains blank. Any idea how to resolve?
The items are 8 character numeric and reside within different records.
The calculation is carried out within a roster.
PROC AGE
preproc
$ = datediff(DATEOFBIRTH(currIdx),INTERVIEWDATE(currIdx),"y");
When I run this code the age field remains blank. Any idea how to resolve?