⇤ ← Revision 1 as of 2023-06-09 16:47:35
Size: 778
Comment:
|
← Revision 2 as of 2023-06-11 21:22:23 ⇥
Size: 830
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 18: | Line 18: |
The effect of `LEAVE` is reset by many commands; not only [[SPSS/Execute|EXECUTE]] but also [[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. | ---- == 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. |
SPSS Leave
The LEAVE command causes variables to temporarily behave like scratch variables. Variables specified on the command will retain their value between cases.
Contents
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.