Professional > Interview scripting > Writing interview scripts > Ending, suspending, and rolling back interviews > Ending or stopping interviews
 
Ending or stopping interviews
You can terminate an interview by placing the following statement in the routing section at the point that you want the interview the end:
Syntax
IOM.Terminate([Signals.Signal], [WriteData],
    [TerminateStatus.Status])
Parameters
Signal
A signal value to be passed to sample management indicating the reason for the termination (see Signals). If the project does not use sample management you can omit this parameter and a default setting of zero will be used instead. If you omit the signal and the project uses sample management, a signal of 1 (completed interview) or 2 (stopped interview) will be passed depending on the value of Status.
WriteData
True (the default) or False depending on whether or not you want to write out any unwritten data for this interview. Currently only True is supported.
Status
The interview status code that shows how the interview was terminated (see Interview termination status).
See also
Signals
Interview termination status
DataCollection system variables
Examples
Ending, suspending, and rolling back interviews