Desktop User Guides > Professional > Using UNICOM Intelligence Professional > Using UNICOM Intelligence Professional to develop interviews > Creating case data
 
Creating case data
When you run or debug an interview, or run the interview using Auto Answer, you can choose to write the answers, also known as the Case Data, to an output format supported by the UNICOM Intelligence Data Model. At present, the formats you can write to are UNICOM Intelligence Data File, IBM SPSS Statistics SAV file, UNICOM Intelligence RDB database, and UNICOM Intelligence XML file.
To define a target location for the case data, add a data source to the interview script (.mdd) file. A script can contain more than one data source, so that you can easily change from using a UNICOM Intelligence Data File to an RDB database, for example.
You can mark case data as Live or Test data. In the routing section of an interview script, use the IsTest property of the IInterviewInfo object to make the code execution conditional on whether the data is Live or Test.
To create case data
1 Open the Tools menu, and make sure that Write To Database is selected.
2 If you have not already configured at least one data source, the Configure Data Sources dialog displays, where you can add new or edit existing data sources.
3 Click Add to define a new data source.
The Data Link Properties dialog opens.
4 In the Case Data Type list, select UNICOM Intelligence Data File, IBM SPSS Statistics File (SAV), UNICOM Intelligence Database (MS SQL Server), or UNICOM Intelligence XML Data File.
5 Click Browse.
If you selected “UNICOM Intelligence Data File”, “IBM SPSS Statistics File (SAV)” or “UNICOM Intelligence XML Data File” as the case data source, an Open File dialog appears. Enter the name and location of a new or existing .ddf, .sav, or .xml file, as appropriate, and click Open.
If you selected “UNICOM Intelligence Database (MS SQL Server)” as your case data source, enter the server name, database name, and any other information that is required for your server environment. Click OK.
6 In the Data Link Properties dialog, click OK.
7 Click Tools > Options, and then change Collect Live Data to True or False as required.
8 Start your interview by pressing F5 (debug), F10 (single step), or F6 (Auto Answer).
The information about your case data source will be saved in your interview script (.mdd) file, and you will not be prompted for that information again.
The interview runs, and collects the case data in the data source that you specified.
See also
Configuring data sources
Adding a data source definition
Selecting a different data source definition
Editing a data source definition
Removing a data source definition
Using UNICOM Intelligence Professional to develop interviews