doc: Move output examples from "examples" to "pspp-figures".
[pspp] / doc / pspp-figures / autorecode.sps
1 get file='personnel.sav'.
2
3 * Correct a typing error in the original file.
4 do if occupation = "Scrientist".
5  compute occupation = "Scientist".
6 end if.
7
8 autorecode
9         variables = occupation into occ
10         /blank = missing.
11
12 * Delete the old variable.
13 delete variables occupation.
14
15 * Rename the new variable to the old variable's name.
16 rename variables (occ = occupation).
17
18 * Inspect the new variable.
19 display dictionary /variables=occupation.
20