Incorrect Output from Numeric Operation in DataMagic, HULFT-DataMagic, and iDIVO

March 2, 2017
(Revised: March 10, 2017)

HULFT Division

We regret to inform you that an issue has been found in our DataMagic, HULFT-DataMagic, and iDIVO software products. Please kindly take the time to read the following information and perform any actions if necessary. We sincerely apologize for any inconvenience caused.

1. Occurred Phenomenon

If a numeric operation is included in operations inside data processing in DataMagic, HULFT-DataMagic, or iDIVO (hereafter referred to as 'target product'), an incorrect result is output when the occurrence condition described below is met (while the processing ends successfully).

2. Cause of Occurrence

An incorrect result is returned from a numeric operation that includes an addition formula or a subtraction formula.

3. Occurrence Condition

The phenomenon might occur when a numeric operation is specified in the output settings inside the mapping settings in the data processing information.

We have created a tool to help you check whether you have such numeric operations in the output settings in the data processing information. For details on the checking tool, please see the attachment Using the checking tool.

If a numeric operation that meets all the conditions described below, Values specified for Formula and Operation target data, exists in the output settings, an incorrect calculation result is output.

Values Specified for Formula

Either of the following is specified for Formula:

  • An addition formula
  • A subtraction formula
Operation Target Data

Both Condition 1 and Condition 2 below are met:

Condition 1

- Either of the following calculations is performed:

When A is greater than 0 and B is greater than A

  • The subtraction of B from A is performed. This results in a negative value.
  • The addition of B to the minus A is performed. This results in a positive value.

Note: The condition applies to the value after the substitution when variable substitution is used.

Condition 2

The remainders of the padded values of A and B divided by 65536, where 0 is padded after the decimal point of the values to align the digits, are equal to each other.

Example 1

When Formula is set to an addition operation (-6553.6 + 65536) in the data processing information

  Augend Addend
Operation in data processing Value for Formula -6553.6 65536
Values having same number of decimal places
(0 is padded and underlined)
-6553.6 65536.0
Value obtained with sign and decimal point removed 65536 655360
Remainder divided by 65536 0 0

Example 2

When Formula is set to an subtraction operation (18048000 - 32793600) in the data processing information

  Minuend Subtrahend
Operation in data processing Value for Formula 18048000 32793600
Remainder divided by 65536 25600 25600

4. Target Products and Versions

• DataMagic for Windows From Ver.3.0.0 to Ver.3.1.0
• DataMagic for UNIX From Ver.3.0.0 to Ver.3.1.0
• DataMagic for Linux From Ver.3.0.0 to Ver.3.1.0
• DataMagic for zLinux From Ver.3.0.0 to Ver.3.1.0
• HULFT-DataMagic for Windows From Ver.1.0.0 to Ver.2.2.3
• HULFT-DataMagic for UNIX From Ver.1.0.0 to Ver.2.2.3
• HULFT-DataMagic for Linux From Ver.1.0.0 to Ver.2.2.3
• HULFT-DataMagic for zLinux From Ver.1.0.0 to Ver.2.2.3
• iDIVO for Windows From Ver.1.0.0 to Ver.1.5.3
• iDIVO for UNIX/Linux From Ver.1.0.0 to Ver.1.5.3

5. Workaround

6. Product Release for the Official Fix

For DataMagic Ver.3 and HULFT-DataMagic Ver.2, the official fix of the issue causing the phenomenon was released on March 10 (Friday).

For HULFT-DataMagic Ver.1 and iDIVO, please contact our information desk (info@hulft.com) or the support program you subscribe to.

Please consider refraining from version and revision upgrades until the fix is officially released.

7. Shipment and Download of Product

We resumed the shipment and the download at myHULFT of the products on March 10, 2017

For questions and inquiries, please email to our information desk (info@hulft.com) or contact any support program you subscribe to.

Document revision history

  • March 2, 2017
    • First revision is created
  • March 3, 2017
    • Attachment Using the checking tool is added
    • Expressions are improved.
  • March 10, 2017
    • 6. Product release for the official fix is updated
    • 7. Shipment and download of product is updated

Attachment: Using the Checking Tool

In the following target products and versions:
• DataMagic From Ver.3.0.0 to Ver.3.1.0
• HULFT-DataMagic From Ver.2.0.0 to Ver.2.2.3
• iDIVO From Ver.1.0.0 to Ver.1.5.3

The tool we provide is to help you check whether your system includes the settings for data processing information that might cause the mentioned phenomenon. To obtain the tool, open your myHULFT page and download the tool by performing the following step:

From https://his.hulft.com/mypage/login/login/, go to myHULFT 〉 Product information 〉 Tools/Samples/Beta.

In the following target products and versions:

You can check whether or not the relevant numeric operation exists by searching a 〈CALCULATE〉 tag in parameter files. Also, you can check whether an addition or subtraction operation exists by searching a plus sign '+' or a minus sign '-' in the 〈CALCULATE〉 tag.

• HULFT-DataMagic From Ver.1.0.0 to Ver.1.4.0
In UNIX/Linux

Move the parameter files to check to one directory and perform the following:

Command example


% cd directory-where-parameter-files-are-stored
% grep '<CALCULATE>' * | grep -e '+' -e '-'

If nothing is output, the occurrence condition is not met. If lines containing 〈CALCULATE〉 are output, the condition might be met.

In Windows

Move the parameter files to check to one directory. Open the Command Prompt and perform the following:

Command example


> cd directory-where-parameter-files-are-stored
> findstr "<CALCULATE>" * | findstr "+ -"

If nothing is output, the occurrence condition is not met. If lines containing 〈CALCULATE〉 are output, the condition might be met.