This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Question Literal Variables are used when the information has been gathered from a questionnaire, and the possible replies contain combinations of letters and numbers. This may range from the name of a city or country to a full open-ended comment, e.g. What else did you order? _________________________________ |
The fields for a Question Literal Variable generally follow the same rules as described earlier in this section, with the exception of the following:
Length |
The minimum length is 1 and the maximum is 9999 characters. When set up within a questionnaire, the length is determined by the size of the box allocated to the question (increased by using [Ctrl] and [+] key, and decreased by using [Ctrl] and [-]). When set up from the Variables window, the default length is set to 100. If respondent data has already been entered, increasing the length field will result in the source field being extended to include a new location at the end of the case data record. For example, if the question literal variable shown above was extended to a length of 150 characters, the source field might now appear as at (41 to 70, 401 to 520). |
Note that if respondent data has already been entered, you cannot reduce the length of the variable although you can still reduce the size of the box in the Questionnaire Design window.
Number of Codes |
One valid code only, OK |
Valid label and value |
Only one code is created for a question literal variable. The valid label is pre-set to Valid, although this can be changed by accessing Tailor | Analysis and selecting [Labels]. The value can be either blank to denote that all values are valid, or as an alphanumeric list (see Lists in user guide 1, “Introduction”), e.g. "BA01" to "BZ99". The value can be up to 100 characters in length. Any value outside this range will be excluded and will be treated as an error. |
See Also |