I am wondering if it is possible to replace values in an existing variable in the same SELECT statement in SQL.
create table temp as
select ID
, DOB
, AGE
, DISEASE_INDICATOR
, case when DISEASE_INDICATOR = 'Y' then 1 else 0
end as DISEASE_INDICATOR
from my_table;
quit;
The error message I get is: "WARNING: Variable DISEASE_INDICATOR already exists on file WORK.TEMP"
Thanks in advance!