If there is a list of values (copied from excel or dataset or text file) that need to be used in where condition, strings need to be in quotes separated by comma. How about giving power to Find & Replace in SAS EG (Ctrl+H) like Notepad++ does.
For example I have:
Acura
Audi
BMW
Buick
Cadillac
Chevrolet
Chrysler
Dodge
Ford
I want them : "Acura","Audi","BMW","Buick","Cadillac","Chevrolet","Chrysler","Dodge","Ford"
Step 1:
Open notepade++ and paste the values.
Step 2:
Remove leading and trailing blanks: Go to edit->Blank Operations->Trim leading and trailing space.
Step 3:
Put quotes: Open Search>Replace… in Notepad++ (Ctrl+H)
Select Regular Expression and in find what add (.+) and in replace what add “\1” and click replace. This will add quotes to the words listed in the file when replaced.
Step 4
Separate by comma: Now in Find what add \r\n and in Replace with add just comma (,) as shown in screenshot.
... View more