You can also construct an initial DM_LogicalDataSpec value by using the methods DM_addDataSpecFld and DM_setFldType. Construct the value this way if you want a generic logical data specification that is independent from a physical source table or if you want to define certain field types manually as numerical or categorical. If you do this, you have to ensure that the alias names in the DM_MiningData value that will be associated with this logical data specification match the field names in the DM_LogicalDataSpec value. If you do not call the method DM_setFldType for a given field, the type of this field defaults to DM_Categorical.
IDMMX.DM_LogicalDataSpec()..DM_addDataSpecFld('COL1')
..DM_setFldType('COL1',1)..DM_addDataSpecFld('COL2')
..DM_setFldType('COL2',1)