This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Length

The maximum number of characters allocated to store the reply. For a question with a Yes/No answer, the Length would be 1. For a question such as income requiring a numeric response, the Length might be 6 or 8.

Snap automatically sets a Length for each variable and in many instances the default setting is sufficient, however there are some cases, such as when creating literals, when you may wish to extend the variable's length.

This field is only applicable for variables with a type Question, Precoded, Alphanumeric or Numeric, i.e. those variables which reference raw data. It indicates the length of the required data, that is the number of columns taken up within a raw data case.

The minimum Length is 1 and the maximum is 9999.

In the case of an Alphanumeric Multiple the Length must be an integer multiple of the item length i.e. the length divided by the item length must produce a whole number (see below).

The Length of a variable denotes the maximum number of characters required to store the largest/longest possible value. For example, if an answer in the range of 1-4 were expected, a Length of 1 would be sufficient. If an answer of up to 9999 were expected, a Length of 4 would be required. If a company name were to be collected, a Length of perhaps 30 would be more suitable.

Multiple Response questions are slightly different when it comes to working out the length, because Snap needs to be able to store more than one answer to a question. The respondent may have ticked just one answer, they may have ticked more than one, or they may have ticked all of the answers. The precise method used to store Multiple Response data varies as a function of the Length and the number of codes. Snap will use the field method as a default (see Coding), but if the length field of the variable is altered manually then the method of storage may need to change.

See Also

Name

Label

Type

Response

Text

Codes

Code List

Errors

Not Asked

Valid

No Reply

Code Label

Value

Counts

Source

Pattern

Sequence

Coding

Must Answer

Ordering

Min

Max

Exclusive

Mask

Auto answer