try using
calculated new_asset_execution_type
in your group instead of case when
try this. this case when thing works in every other sql implementation, I have used but somehow not in proc sql
proc sql;
create table cars as
select case when make = 'Acura' then 'Audi'
else make end as newmake, model, sum(msrp) from sashelp.cars
group by calculated newmake , model
;
proc sql;
create table cars as
select case when make = 'Acura' then 'Audi'
else make end as newmake, model, sum(msrp) from sashelp.cars
group by case when make = 'Acura' then 'Audi'
else make end , model
;
... View more