= SPSS Leave = The '''`LEAVE`''' command causes variables to temporarily behave like [[SPSS/ScratchVariables|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 [[SPSS/Compute|COMPUTE]] or [[SPSS/Logic#Conditional_Processing|IF]]. It should be programmed in the shortest possible structure, directly after the commands for which the effect is essential. ---- == See also == [[https://www.gnu.org/software/pspp/manual/html_node/LEAVE.html|PSPP manual for LEAVE]] ---- CategoryRicottone