-x option
This option updates the column and measure scales
of the MDL model, provided the data source can handle queries about
scale. Therefore the option is supported for relational data sources,
but not ASCII or other flat-file data sources.
All column scales are first checked to confirm that they match those in the source. Then, the associated measures are checked and their output scales are updated, as required.
The syntax
for using the -x
option is as follows:
cogtr -x -mfilename.mdl
The following Windows example
opens the Field3.mdl file and grants access to the required database
using the signon named field
, user ID CarlosR
,
and password pw462
. Assuming that the signon matches
what is defined in the model, the process runs in batch mode, updates
scales of columns defined in the model, and saves it back to the model.
cogtr -n -x -o -s -kfield=CarlosR/pw462 -mField3.mdl