Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statscraft 0.7.0, release v0.7.0

LEAVE

Keep the values of new variables from case to case instead of resetting them.

Syntax

LEAVE varlist.
The variables must be new: made by the transformations since the data were last read,
before LEAVE, and not scratch variables. A numeric one starts at 0 for the first case,
a string one blank; each later case starts with the value the case before ended with.
In an input program the variables are not reset before each case.

Example

COMPUTE total = total + salary.
LEAVE total.

statscraft help LEAVE prints the same text in the terminal. All commands