Desktop User Guides > Professional > Interview scripting > Sample management > Sample management facilities > End of interview
 
End of interview
The action that sample management takes when an interview ends is controlled by the ReturnSampleRec function. When the interview ends in any of the following ways, UNICOM Intelligence Interviewer - Server calls the ReturnSampleRec function:
The respondent completes the interview.
The respondent stops the interview using the Stop button.
The respondent loses their connection or goes to another page.
The interview script forces early termination of the interview.
The administrator stops the interview.
UNICOM Intelligence Interviewer - Server cannot call the ReturnSampleRec function when the interview is terminated abnormally through, for example, a serious hardware or software failure or by decision of the administrator.
By default, UNICOM Intelligence Interviewer - Server uses two codes to indicate whether the interview was completed or stopped. However, you can use additional codes from the interview script, and UNICOM Intelligence Interviewer - Server sets the TimedOut interview property when an interview times out or the respondent loses their connection or goes to another page.
The ReturnSampleRec function can define different actions for the different types of interview endings. For example:
Interview completed. The sample record is moved into the COMPLETED queue and written to the sample table.
Interview stopped or timed out. The sample record is moved into the STOPPED queue and written to the sample table.
See also
End of Interview Web Pages
Sample management facilities