IBM Support

II07361: REXX COMPARISON BETWEEN DIFFERENT HEX VALUES SUCH AS 0E2 AND 0E4 RESULTS IN EQUALITY

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • INTRAN

Error description

  • A REXX comparison of hex values such as 000E20 and 000E55
    results in equality.  The reason for this is that the values
    are taken to be numbers in exponential notation.  000E20 is
    0 times 10 to the 20th power which is 0.  000E55 is 0 times
    10 to the 55th power which is also 0.  This means that a
    comparison such as:
       IF ('000E34' = '0E452145') THEN
    will be TRUE.
    .
    If you wish to have such a test return FALSE then you
    want to use REXX strict equality operators.  Strict
    operators go character-by-character.  This means that
    '0' is different from '00' and '0E34' is different from
    '000E2'.  When the data being compared is to be taken as
    hex values the strict comparison operators should be used.
    .
    For more information, see TSO/E V2 REXX Reference (SC28-1883)
    Chapter 2 "REXX General Concepts" under "Comparison".
    

Local fix

  • Use strict equality operators for character-by-character
    comparisons.
    

Problem summary

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    II07361

  • Reported component name

    V2 LIB INFO ITE

  • Reported component ID

    INFOV2LIB

  • Reported release

    001

  • Status

    INTRAN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    1993-11-04

  • Closed date

  • Last modified date

    1993-11-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19N","label":"APARs - OS\/390 environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"001","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"001","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":null,"label":null},"Product":{"code":"SG19O","label":"APARs - MVS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"001","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSSN3L","label":"z\/OS Communications Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"001","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
14 December 2020