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.
You define a target location for your case data by adding a data source to your interview script (.mdd) file. Your 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.
Note You can choose to mark your case data as Live or Test data. In the routing section of your interview script, you can use the IsTest property of the IInterviewInfo object to make your code execution conditional on whether you have marked the data as live or test data.
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, allowing to add new or edit existing data sources. If you have already defined a data source, skip the next six steps.
3 Click Add to define a new data source.
This open the Data Link Properties dialog.
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 the Browse button to the right of the Case Data Location box.
6 If you selected “UNICOM Intelligence Data File”, “IBM SPSS Statistics File (SAV)” or “UNICOM Intelligence XML Data File” as your 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.
7 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.
8 In the Data Link Properties dialog, click OK.
9 From the Tools menu, choose Options, and change the Collect Live Data option to True or False as required.
10 Start your interview using 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 will now run and collect the case data in the data source that you specified.
See also