Data Model > Available DSCs > Triple-S DSC > Writing to Triple-S files > Creating a Triple-S Metadata file
 
Creating a Triple-S Metadata file
You can use a UNICOM Intelligence Metadata Model (MDM) document to create a Triple-S metadata (.sss or .xml) file. The MDM document must include a number of custom properties as described in Custom properties used when writing to Triple-S files.
The following example shows how to use an mrScriptBasic script to create a Triple-S metadata file. Note that [INSTALL_FOLDER] is the directory where you installed UNICOM Intelligence, such as C:\Program Files.
Dim MyDocument, TripleSDsc

Set MyDocument = CreateObject("MDM.Document")
MyDocument.Open("C:\MyProject.mdd")

' Use the DSC Registration component to find the Triple-S DSC...
Set TripleSDsc = CreateObject("MRDSCReg.Components").Item["mrTripleSDsc"]

' Write out the Triple-S metadata file...
TripleSDsc.Metadata.Save(MyDocument, _
"[INSTALL_FOLDER]\IBM\SPSS\DataCollection\<version>\DDL\Output\MyProject.sss", Null)
An alternative method is to create the Triple-S metadata file in the OutputDataSource section of a Data Management Script (DMS) file, as shown in this example. [INSTALL_FOLDER] is the directory where you installed UNICOM Intelligence, such as C:\Program Files.
OutputDataSource(Output, "Output case and metadata")
ConnectionString = "Provider=mrOleDB.Provider.2; _
Data Source=mrTripleSDsc; _
Location=[INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\DDL\Output\MyProject.asc; _
MR Init MDSC = mrTripleSDsc; _
Initial Catalog = [INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\DDL\Output\MyProject.sss; _
MR Init Custom = SssFormat = fixed"
End OutputDataSource
See also
Triple-S DSC
Writing to Triple-S files