Variable name-cars name of dataset-name I am trying to remove certain cars that make up <1% or <3% from a dataset. I am not sure which of the following if then do end statement has a correct logic- Code 1- data work.name work.name_other; set work.name; if cars not in ('BMW', 'AUDI', 'BENZ') then do; if percent < 1 or count ❤️ then output work.name_other; /*Pull cars that make up <1% or <3*/ end; else output work.name; run; Code 2- data work.name work.name_other; set work.name; if count ❤️ and cars not in ('BMW', 'AUDI', 'BENZ') then output work.name_other; /*Pull cars that make up <1% or <3*/ else output work.name; run; Thanks!
... View more