NIPO ODIN Version 5.17

*SAVE (codes option)

Purpose

Saves a code number or label in a variable.

Syntax

*SAVE <var>

Description

This command is always used after a code definition and must be specified after this code on the same line. If it is a numeric variable the code value is saved as answer. If it is a text variable the descriptive text of the answer category is saved. If it is an open code the open-ended answer text is saved.

Remark

May not be used in a single question in combination with *SAVE as a question option.

Arguments

var
Any (alpha)-numerical variable or anyof the ten system variables. If the argument is omitted system variable 0 is used by default.

Example

*TEXTVARS localpaper

*QUESTION 1 *CODES L7 *MULTI
To what newspapers do you subscribe?

1: New York Times
2: The Guardian
3: Sunday Times
4: Washington Post
5: Herald Tribune
6: A local paper *OPEN *SAVE localpaper

7: Don’t know *NMUL

*QUESTION 2 *CODES L1 *IF [Q1,6]
Do you read *? localpaper frequently?

1: Yes
2: No

See Also