Professional > Interview scripting > Writing interview scripts > Ending, suspending, and rolling back interviews > Ending or stopping interviews > DataCollection system variables
 
DataCollection system variables
The DataCollection system variables in the case data contain general information about each interview. The ones that are directly related to ending interviews are as follows:
System variable
Contents
DataCollection.Status
The interview status. This contains a categorical value showing the following:
 
Was this a test or live interview?
 
Terminate.Status value.
 
For all statuses except Complete, whether the interview was terminated with a signal (see below).
 
For example {test,scriptstopped,signal} for a test interview that failed due to a script error, or {test,completed} for a completed test interview.
DataCollection.EndQuestion
The name of the last question answered.
DataCollection.TerminateSignal
The numeric signal value (blank for completed interviews).
Note Interviews terminated by an Exit statement in the routing section are treated as completed interviews.
See also
Ending or stopping interviews