Yes your second statement must work.....logically you are saying to SAS that if name is not equal to Balaji then show output. Since out of three observation those name not equal to Balaji are shown...and there is nothing wrong with second syntax.
... View more