Swapping over levels on a categorical variable in SPSS

This is most quickly done using the syntax below which can be adapted as necessary. In this example groups 1 and 3 are swapped in the OCCASION variable and saved into a new variable called OCCASION2.

RECODE OCCASION (3=1) (2=2) (1=3) INTO OCCASION2.
EXECUTE.