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.


Data Model

The LEAVE command is queued as a pending transformation.

LEAVE status is reset by many commands, such as 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

SPSS/Leave (last edited 2023-06-11 21:22:23 by DominicRicottone)