Developer Documentation Library > Data Model > Available DSCs > Triple-S DSC > Reading from Triple-S files > Custom properties created when reading from Triple-S files > Adding custom properties on variable instances
 
Adding custom properties on variable instances
For each variable instance in the generated MDM document, and depending on the MDM variable type, the Triple-S DSC adds one or more of the following custom properties:
CodeWidth
Valid MDM variable type: Multiple-response categorical
Value: If the corresponding Triple-S variable contains a <spread> element that includes a width attribute, the Triple-S DSC sets the value of CodeWidth to the value of that attribute, otherwise the Triple-S DSC sets the value of CodeWidth to 1.
User context: CARDCOL or CSV, depending on the implied format of the Triple-S case data.
ColCount
Valid MDM variable type: All
Value: The Triple-S DSC calculates ColCount from the values of the start attribute and the finish attribute (if specified) in the corresponding Triple-S variable's <position> element. Note that the finish attribute is not required in the Triple-S metadata if the implied format of the Triple-S case data is comma-separated values.
User context: CARDCOL or CSV, depending on the implied format of the Triple-S case data.
ColStart
Valid MDM variable type: All
Value: The value of the start attribute in the corresponding Triple-S variable’s <position> element.
User context: CARDCOL or CSV, depending on the implied format of the Triple-S case data.
DataFormat
Valid MDM variable type: Single-response or Multiple-response categorical, or Date
Value: For a Single-response categorical variable, if the corresponding Triple-S variable includes a format attribute and the value of that attribute is “literal”, the Triple-S DSC sets the value of DataFormat to “literal”, otherwise it sets it to “numeric”.
For a Multiple-response categorical variable, if the corresponding Triple-S variable includes a <spread> element, the Triple-S DSC sets the value of DataFormat to “packed”, otherwise it sets it to “bitmapped”.
For a Date variable, if the variable type of the corresponding Triple-S variable is date, the Triple-S DSC sets the value of DataFormat to “date”, otherwise it sets it to “time”.
User context: CARDCOL or CSV, depending on the implied format of the Triple-S case data.
filter
Valid MDM variable type: All
Value: The value of the corresponding Triple-S variable’s <filter> element, if specified.
User context: CARDCOL or CSV, depending on the implied format of the Triple-S case data.
ident
Valid MDM variable type: All
Value: The value of the corresponding Triple-S variable’s ident attribute.
User context: CARDCOL or CSV, depending on the implied format of the Triple-S case data.
use
Valid MDM variable type: All
Value: The value of the corresponding Triple-S variable’s use attribute, if specified.
User context: CARDCOL or CSV, depending on the implied format of the Triple-S case data.
See also
Custom properties created when reading from Triple-S files
See also
Reading from Triple-S files
Triple-S DSC
Custom properties created when reading from Triple-S files