IBM Support

PM34548: No index range checking done for static arrays in generated Cobol program

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If the EGL source contains a reference  to an array element and
    the array is a static array, then there is no range check is
    performed for out of bounds condition for Cobol Generation. This
    differs from Java generation where the range check is always
    done.
    
    Example program:
    
    package tester;
    
    record rec type basicrecord
        01 arr int[5];
    end
    //Put EGL Source File Contents Here'
    
    program quick type BasicProgram{}
    
        function main()
    
            i int;
    
            r rec;
            r.arr[0] = i;
    
        end
    
    end
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The check indeces build option for COBOL generation was only
    supporting dynamic arrays and substrings. It was not
    checking static structured field arrays for indexes out of
    range.
    

Problem conclusion

  • Code has been added to additionally check static structured
    field arrays.
    This code has been added to both 7517 and 8012, and fixtests
    are available for 7516 and 8011 systems.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM34548

  • Reported component name

    RBD EGL FOR COB

  • Reported component ID

    5724S5001

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-10

  • Closed date

    2011-05-06

  • Last modified date

    2011-05-06

  • 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

    RBD EGL FOR COB

  • Fixed component ID

    5724S5001

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 October 2021