This depends a bit on what you want to do.
It is quite possible in SPSS to run one of two alternative analyses, either using the macro facility or Python programmability.
The macro version is here
Code: Select all
Define onetwo (CODE=!TOKENS(1))
!IF (!CODE !EQ 1) !THEN
You can put as many spss commands as you like where Freq V1 and Freq V2 is located.
Note that the CODE gets its value from you as part of the syntax - the code value is not data driven. If you want to have it data driven (say, as a consequence of some earlier analysis) it is simpler to do it with Python.