I have the following SAS code:
DATA WORK.temp;
SET WORK.proj;
RETAIN prev_time
prev_name
prev_type
count 0;
FLAG = 0;
IF( (prev_name = name) AND (prev_type NE type) AND (prev_type = 'x')) THEN DO;
TimeDifference = time - prev_time;
IF( TimeDifference < 10*60) THEN DO;
FLAG = 1;
count + 1;
END;
END;
prev_time = time;
prev_type = type;
prev_name = name;
RUN;
When I run the program I get notes telling me that my character values have been converted to numeric values:
NOTE: Character values have been converted to numeric values
NOTE: Invalid numeric data, name='somename'
NOTE: Invalid numeric data, name='othername'
I never asked SAS to make this conversion, and it is causing errors in the output. Any idea what is causing this?
Thanks!