Hi everyone,

Im trying to code negative values in my dataset as missing values.i want to do this across all the variables. The condition of re coding negative values as (.) is also same across all the variables.

e.g:
replace var1 = . if var1 < 0

I would want it to do for multiple variables at once.

Any help with this would be really appreciated.
Thanks