Hi everyone.
In my dataset, I have a column which includes the names of several brands. I want to create a variable which will include another variation of the name of the same brands. Below are the first few lines of my code:
data Test6;
set work.Test5;
If name = “Aeromexico” then MergeName = “Aeromexico”;
Else if name = “Alaska Airlines” then MergeName = “Alaska Air”;
Else if name = “Foster’s Funny” then MergeName = “Fosters”
The reason I am using double quotation is some brand names include single quotation marks.
However, I am getting the following errors from SAS:
ERROR 390-185: Expecting an relational or arithmetic operator.
ERROR 200-322: The symbol is not recognized and will be ignored.
ERROR 76-322: Syntax error, statement will be ignored.
What is wrong with my code? Why am I getting these? Thanks so much inadvance!