Professional > Interview scripting > Writing interview scripts > Ending, suspending, and rolling back interviews > Standard end-of-interview procedure
 
Standard end-of-interview procedure
When a respondent reaches the end of the interview script, the interviewing program displays the message “End of interview. Thank you for your participation.” and flags the interview as completed. The interview data is written to the case data file and the DataCollection.Status system variable in the data is set to Complete (if the AutoUpdate property is set to 1 in DPM (the default) then interview data is written out as each question is answered). If the project uses sample management, the sample record is returned to the sample management system for postprocessing.
The messages that respondents may see at the end of the interview are defined in StandardTexts.mdd in C:\Program Files\Common Files\IBM\SPSS\DataCollection\<version> IOM. The message for completed interviews is defined in EndOfInterview while the message for interviews that are stopped for any reason are defined in InterviewStopped. You can change these messages for a single project in the same way that you change the standard error messages (see Replacing the standard message texts for details), or for all projects by opening the file in MDM Explorer and changing the value of the EndOfInterview or InterviewStopped variables. You can also translate the variables' values using Translation Utility.
If you need even more control over the wording and want to vary it for different respondents, you can specify the text in the routing section with:
IOM.Texts.EndOfInterview = "Message"
IOM.Texts.InterviewStopped = "
Message"
For example:
IOM.Texts.EndOfInterview = _
    "You have finished the interview early due to "+
    tInfo.Format("b")
In this example, the reason for termination comes from an information item called tInfo in the metadata section. The Format parameter says to use the text of the item rather than the numeric value that is assigned internally to this text (see Format).
See also
Ending, suspending, and rolling back interviews