Professional > Data management scripting > Working with UNICOM Intelligence Interviewer - Server data > Exporting UNICOM Intelligence Interviewer - Server data to Quantum
 
Exporting UNICOM Intelligence Interviewer - Server data to Quantum
Exporting UNICOM Intelligence Interviewer - Server data to Quantum is not different from other exports to Quantum, in that in order for the export to succeed, valid card, column, and punch definitions must be available in the output metadata. However, there are some considerations that you need to take into account when you export an active UNICOM Intelligence Interviewer - Server project's data to Quantum.
Setting up card, column and punch definitions
There are two ways of setting up card, column, and punch definitions:
Using the Metadata Model to Quantum accessory
Use Metadata Model to Quantum on the .mdd file in the FMRoot\Shared folder. Generally, you should set up the card, column, and punch definitions for the variables in each version before it is activated. Typically you would then run your export on the .mdd file in the FMRoot\Shared folder. If you use this method, make sure that your DMS files do not clear the definitions that have already been set up. Some of the sample DMS files do this, so if you want to use these samples, you must edit them before you run them. For more information, see Using Metadata Model to Quantum with UNICOM Intelligence Interviewer - Server Admin.
Using the Metadata Model to Quantum component in your DMS file
The advantage of setting up your card, column, and punch definitions in your DMS file is that you can set up the definitions and run the export in one step and setting up the definitions is largely invisible. Most of the samples assume that you are using this method.
Using these methods
Whichever method you use, there are some considerations when you export data from a multiversion project. This is particularly true if you want to store the data for all versions in the same .dat file, because you need to ensure that the layout of the data created by all versions is compatible.
You can export data for all versions of a multiversion project after all of the data has been collected, by selecting all versions of the metadata. For more information, see Exporting UNICOM Intelligence Interviewer - Server Data to Quantum using all versions.
However, in a large or ongoing project, you may want to export data in batches, for example on a daily basis. The UNICOM Intelligence Developer Documentation Library comes with some samples that you can use to do this. For more information, see Exporting batches of UNICOM Intelligence Interviewer - Server data to Quantum.
For information on creating the Quantum specification, see Creating the Quantum specification.
Note If you export the same records to the same .dat file two or more times, the new records are appended to the end of the file and the existing records are not updated. You should therefore be careful not to create duplicate records in the .dat file by exporting the same case data to it more than once.
See also
Exporting UNICOM Intelligence Interviewer - Server Data to Quantum using all versions
Exporting batches of UNICOM Intelligence Interviewer - Server data to Quantum
Creating the Quantum specification
Working with UNICOM Intelligence Interviewer - Server data