CIB merge technical documentation (EN)
6. Call parameters in detail
6.52. Parameter --old-compare
With this parameter the new interpretation of conditions can be switched off.
Syntax
--old-compare=<Option>
--alter-Vergleich=<Option>
<Option>: +, - oder „“
Description
With newer versions, MS-Office has an extended range of functions in the automatic comparison of data types. This has required a renewal in CIB merge (from version 3.8.126). Customers who wish to use an older (conservative) comparison procedure can do so by using the --old-compare call parameter.
Switching off the new interpretation of conditions can be controlled by the --old-compare parameter. The parameter can be set for all merge processes using the "AUTOSTART" functionality (from CIB merge versions 3.9.104 and 3.8.130). The "AUTOSTART" - parameter file can be patched directly into the binary file via hex editor or the environment variable "CIB_MRGAUTOSTART" can be set with the parameter file name.
Spezifikation
Der Parameter heißt „OLD-COMPARE“. Alternativ kann auch „ALTER-VERGLEICH“ angegeben werden. Wie bei allen Merge - Parametern wird die Groß-/Kleinschreibung nicht berücksichtigt.
Possible values for <Option> are:
Option |
Description |
+ |
CIB merge interprets the conditions as in previous versions (until 3.9.127 / 3.8.126): Both sides of a comparison (condition) have a "data type", if the type does not match, the result is "false". No evaluations are made, wildcards are not allowed. |
- |
Default setting. CIB merge interprets the conditions according to the current comparison method. The data type used on the left side indicates how the comparison will be done: · if a date is on the left, a date will be compared · if a number is on the left, there will be assumed a number on the right as well ·
evaluations can
be made · wildcards can be used |
„“ |
Same as Option „+“. |
Example
--old-compare=+
CIB merge interprets the conditions according to the old comparison method.
„“ ist gleich „+“. Die Voreinstellung ist „-“
Wenn „+“ eingestellt ist, interpretiert CIB merge Bedingungen, wie in den vergangenen Versionen (bis 3.9.127 bzw. 3.8.126). Die Erweiterung wird in CIB merge 3.8 und 3.9 aufgenommen.
{compare …} |
Explanation |
Evaluation without switch |
Evaluation with switch --old-compare=+ |
1.1.2004 = 01.01.2004 |
Comparison as calendar date. |
1[1] |
1 |
„1.1.2004“ = 01.01.2004 |
Comparison as text, because there are quotation marks on the left. |
0[2] |
0 |
1.1.2004 = „01.01.2004“ |
Comparison as date, because the right quotation marks do not bother. |
1 |
0 |
1 = 01 |
Comparison as number. |
1 |
1 |
„1“ = 01 |
Comparison as text, because there are quotation marks on the left. |
0 |
0 |
1 = „01“ |
Comparison as number, because the right quotation marks do not bother. |
1 |
0 |
Amount < „10.000 €“ |
Comparison as text, because there are quotation marks on the right. |
1 |
1 |
Height> 3,5m |
Comparison as number with 3,5. |
1 |
1 |
Amount < EUR10000 |
Comparison as text, because 10000 is not at the beginning. |
1 |
1 |
Amount < „EUR 10000“ |
Comparison as text, because 10000 is not at the beginning. |
1 |
1 |
1.1.2004 = 1 |
Comparison as number because no date was recognized on the right. If no date is recognized on the right side, the system tries to interpret both sides as a number. |
0 |
0 |
1+1 = 2 |
Comparison as number, where the expression 1+1 is not evaluated. (Thus: 1 = 2) |
1 |
0 |
„Test Wild“ = „*W??d” |
„*“ and „?“are interpreted as ordinary characters (i.e. returns 0) |
1 |
0 |