datacollectionimportnode Properties

Data Collection Import node
The Data Collection Data Import node imports survey data based on the Data Collection Data Model used by market research products. The Data Collection Data Library must be installed to use this node.

Example

node = stream.create("datacollectionimport", "My node")
node.setPropertyValue("metadata_name", "mrQvDsc")
node.setPropertyValue("metadata_file", "C:/Program Files/IBM/SPSS/DataCollection/DDL/Data/
Quanvert/Museum/museum.pkd")
node.setPropertyValue("casedata_name", "mrQvDsc")
node.setPropertyValue("casedata_source_type", "File")
node.setPropertyValue("casedata_file", "C:/Program Files/IBM/SPSS/DataCollection/DDL/Data/
Quanvert/Museum/museum.pkd")
node.setPropertyValue("import_system_variables", "Common")
node.setPropertyValue("import_multi_response", "MultipleFlags")
Table 1. datacollectionimportnode properties
datacollectionimportnode properties Data type Property description
metadata_name string The name of the MDSC. The special value DimensionsMDD indicates that the standard Data Collection metadata document should be used. Other possible values include: mrADODsc mrI2dDsc mrLogDsc mrQdiDrsDsc mrQvDsc mrSampleReportingMDSC mrSavDsc mrSCDsc mrScriptMDSC The special value none indicates that there is no MDSC.
metadata_file string Name of the file where the metadata is stored.
casedata_name string The name of the CDSC. Possible values include: mrADODsc mrI2dDsc mrLogDsc mrPunchDSC mrQdiDrsDsc mrQvDsc mrRdbDsc2 mrSavDsc mrScDSC mrXmlDsc The special value none indicates that there is no CDSC.
casedata_source_type Unknown File Folder UDL DSN Indicates the source type of the CDSC.
casedata_file string When casedata_source_type is File, specifies the file containing the case data.
casedata_folder string When casedata_source_type is Folder, specifies the folder containing the case data.
casedata_udl_string string When casedata_source_type is UDL, specifies the OLD-DB connection string for the data source containing the case data.
casedata_dsn_string string When casedata_source_type is DSN, specifies the ODBC connection string for the data source.
casedata_project string When reading case data from a Data Collection database, you can enter the name of the project. For all other case data types, this setting should be left blank.
version_import_mode All Latest Specify Defines how versions should be handled.
specific_version string When version_import_mode is Specify, defines the version of the case data to be imported.
use_language string Defines whether labels of a specific language should be used.
language string If use_language is true, defines the language code to use on import. The language code should be one of those available in the case data.
use_context string Defines whether a specific context should be imported. Contexts are used to vary the description associated with responses.
context string If use_context is true, defines the context to import. The context should be one of those available in the case data.
use_label_type string Defines whether a specific type of label should be imported.
label_type string If use_label_type is true, defines the label type to import. The label type should be one of those available in the case data.
user_id string For databases requiring an explicit login, you can provide a user ID and password to access the data source.
password string
import_system_variables Common None All Specifies which system variables are imported.
import_codes_variables flag  
import_sourcefile_variables flag  
import_multi_response MultipleFlags Single