Dear all, I have a table where in I have to replace value in two columns ( Customer_Complaint and Status) based on the value present in them. I tried using SQL with CASE statement to modify the variables. However i am able to update values only in one particular column (Customer_Complaint) and not in other Status column. Is there a way to update data in both columns ? I tried the below code, however i am getting an error when using multiple case statements. Table structure : Ticket /Customer_Complaint/ Status proc sql; select * , case when customer_complaint like '%Speed%' then 'Speed' when customer_complaint like '%Service%' then 'Service' when customer_complaint like '%Data%' then 'Data' else 'Miscellaneous' end as Customer_Complaint1 Case when status like 'Pending' then 'Closed' end as Status_1 from work.comcast; quit; Is there a way that i first update the data in the first column (Customer_Complaint), write into a temporary file and then perform operation on the temporary file to update the Status column? or is there a way to update file using replace? Please guide thanks in advance for your help.
... View more