There is the Missing- function and the missing keyword in SPSS. This works like this:
IF missing(VAR1) THEN new = $SYSMIS.
Missing is a function and figures out if the value for the case is system-missing (a dot) or a user defined missing value. If yes, the parter after the then is executed. In this case, I told SPSS to assign it a "system missing value", visible as a dot. If you want to use a custom missing value, like "6", you would have to include it in the IF-handling.
This would look like this:
MISSING VALUES VAR1 ().
IF VAR6 = 1 then new = 6.
MISSING VALUES VAR6 new(6).