Hi,
I am trying to calculate an age (in years)for each member substracting from System date using the following code:
DATA AgeCalc;
set base;
age=intck('YEAR',SYSDATE,mem_DOB);
run;
*****************************************************
MEM_DOB column numeric data look like the following :
13FEB1930
I got an empty age column and my log says:
NOTE: Character values have been converted to numeric values at the places given by:
(Line)Column).
520:27
NOTE: Variable SYSDATE9 is uninitialized.
NOTE: Missing values were generated as a result of performing an operation on missing
values.
Each place is given by: (Number of times) at (Line)Column).
62060 at 520:5
NOTE: There were 62060 observations read from the data set WORK.BASE.
NOTE: The data set WORK.AGECALC has 62060 observations and 12 variables.
NOTE: DATA statement used:
real time 1.98 seconds
cpu time 0.07 seconds
What I am doing wrong?
Thank you in advance!
Irin
I am trying to calculate an age (in years)for each member substracting from System date using the following code:
DATA AgeCalc;
set base;
age=intck('YEAR',SYSDATE,mem_DOB);
run;
*****************************************************
MEM_DOB column numeric data look like the following :
13FEB1930
I got an empty age column and my log says:
NOTE: Character values have been converted to numeric values at the places given by:
(Line)Column).
520:27
NOTE: Variable SYSDATE9 is uninitialized.
NOTE: Missing values were generated as a result of performing an operation on missing
values.
Each place is given by: (Number of times) at (Line)Column).
62060 at 520:5
NOTE: There were 62060 observations read from the data set WORK.BASE.
NOTE: The data set WORK.AGECALC has 62060 observations and 12 variables.
NOTE: DATA statement used:
real time 1.98 seconds
cpu time 0.07 seconds
What I am doing wrong?
Thank you in advance!
Irin