08-19-2014 04:43 PM
I need to delete observations from my dataset when the entry for a given variable contains a certain character (@). I want to keep all the other observations. This seems to require something between an if-then statement and a where contains statement. I can't seem to find any references to this situation. Can anyone suggest the best way to do this?
08-19-2014 06:13 PM
Or sql like
PROC SQL ;
DELETE FROM your.dataset
WHERE that_variable CONTAINS '@' ;
The contains keyword can be replaced with the symbol ? to make the syntax shorter (not neccessarily clearer)