I'm trying to build a simple variable in spss like below but can't figure it out from documentation. In sas, you simply need to put qoutes around your macro to resolve. Can't figure out how in SPSS.
define !reg (name= !tokens(1)).
compute !concat(!name,'_f') = 0.
if type =("!name") compute !concat(!name,'_f') = 1.
execute.
!enddefine.
!reg name=joe.