IBM Support

PM81322: DXL script shows wrong results for the if.. else if.. else if statement if you add a comment line (\\) with a preceding space

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Problem Description:
    
    DXL script shows wrong results for the if.. else if.. else if
    statement if you add a comment line (\\) with a preceding space
    or tab in-between else and if, the out put changes.
    
    Here is the sample Code to reproduce the problem:
    
    -----------------------------------------------
    int a=0
    int b=0
    if ((a==0) ?? (b==0) ) {
    print 'foo'
    a++  // must not be a problem?
    } else
     //this will create the problem
    if ( (a==0) ?? (b?0) ) {
    print 'bar'
    } else
     //this will create the problem
    if ( (a?0) ?? (b==0) ) {
    print 'zoo'
    } else {
    print 'abc'
    }
    
    ---------------------------------------------
    
    Note: If you have a just add a space between else if, the out
    put is shown correctly according to the logic. Even a comment
    line without preceding space or tab works fine.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    DXL script shows wrong results for the if.. else if.. else
    if statement if you add a comment line (\\) with a preceding
    space.
    

Problem conclusion

  • The DXL reference manual has been updated.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM81322

  • Reported component name

    TLOGIC DOORS

  • Reported component ID

    5724V61DR

  • Reported release

    930

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-24

  • Closed date

    2014-03-03

  • Last modified date

    2014-03-03

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

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

Fix information

  • Fixed component name

    TLOGIC DOORS

  • Fixed component ID

    5724V61DR

Applicable component levels

  • R930 PSN

       UP



Document information

More support for: Rational DOORS

Software version: 9.3

Reference #: PM81322

Modified date: 03 March 2014