SPSS Leave

The LEAVE command causes variables to temporarily behave like scratch variables. Variables specified on the command will retain their value between cases.


Usage

compute Total_Sales = sum(Sales, Total_Sales).
leave Total_Sales.

The effect of LEAVE is reset by many commands; not only EXECUTE but also COMPUTE or IF. It should be programmed in the shortest possible structure, directly after the commands for which the effect is essential.


See also

PSPP manual for LEAVE


CategoryRicottone