Setting up card and column definitions using the Metadata Model to Quantum component
The Metadata Model to Quantum Component makes it easier to allocate card, column, and punch definitions programmatically; for example, in a DataManagementScript (DMS) file. For detailed documentation of all of the properties and methods of the Metadata Model to Quantum Component, see
Metadata Model to Quantum component.
This section contains two mrScriptBasic examples that illustrate using the Metadata Model to Quantum Component to set up the card, column, and punch custom properties:
The examples are installed with the UNICOM Intelligence Developer Documentation Library as sample mrScriptBasic (.
mrs) files called
MDM2Quantum.mrs and
MDM2QuantumClearAndAllocate.mrs. For more information, see
Sample mrScriptBasic files.
To run the mrScriptBasic samples
1 Open a Command Prompt. For example, on Windows 2000, from the Windows Start menu, choose Programs > Accessories > Command Prompt
2 Change to the folder in which the samples are stored. Typically this is the [INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\DDL\Scripts\General\mrScriptBasic folder.
3 Type mrscriptcl followed by the name of the sample file followed by any other option you require. For example:
mrscriptcl MDM2Quantum.mrs /v
The
/v option displays the variables used in the script and their values when the script exits. This means you can check the value of the
ErrorText and
VersionError variables to see whether there were any errors. For more information, see
mrScript Command Line Runner.
See also