NIPO ODIN Version 5.17
*INIT ... *END
Purpose
Starts an initial part of a questionnaire.
Syntax
*INIT
Description
Defines the start of an initial part of the questionnaire. This command must be specified at the beginning of a line. The command may only occur once in the questionnaire. In an initialization 'block' any NIPO ODIN script may be used. This block is always executed after displaying the introduction, even for resumed questionnaires after suspension or an appointment. The block is concluded by *END .
The *INIT command is useful as a precursory initialization that must always be executed when resuming the interview after an appointment or suspension. It may be used to re-run questions, calculations, re-test stratification et cetera. After execution of an *INIT block, the interview is resumed at the last question answered previous to the appointment or suspension.
Remarks
- Answers from a previous run of the
*INIT block are not made visible. - If the
*INIT block is used to display some variables from a previous session (like a counter), one solution is to store this counter in the telephone file or Sample table and use the *COPY command to retrieve this data. - When using Channel Aware scripting (
*IF [_ISCATI] or *IF [_ISCAWI] ), questions in the *INIT block will always be executed according to the current channel.
Example 1
*INIT *QUESTION 9001 *ALPHA L18 *DATE Q9001 *END
In this example the current date and time is saved each time the interview is started.
Example 2
*INIT
*QUESTION 9002 *ALPHA L20 Int. first type the name of the respondent
*END
*QUESTION 1 *CODES L1 Are you the managing director of this company?
1: Yes 2: No
*QUESTION 2 *CODES L1 Can you connect me with the managing director of the company
1: Yes 2: No, he is not in the office currently *CUT 1 3: No, refusal *ABORT
In this example the name of the respondent is asked before each interview. Note that only the name of the last contact will be saved in question 9002.
|