IBM Support

PI63372: COBOL Zunit "Generate Test Case" may result in out of memory error with multiple calls with varying number of parameters

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • In Rational Developer for System z (RDz) 9.1.1.3, while
    generating a test case for a COBOL program using zunit, RDz may
    terminate with out of memory (OOM) error if the COBOL program
    contains multiple calls to a subroutine with varying number of
    parameters. here is an example of the source that may result in
    OOM error:
    
    IDENTIFICATION DIVISION.
           PROGRAM-ID. P53991.
           ENVIRONMENT DIVISION.
           DATA DIVISION.
           WORKING-STORAGE SECTION.
           01 ARG1   Pic x(1).
           01 ARG2   Pic x(2).
           01 ARG3   Pic x(3).
    
           PROCEDURE DIVISION.
           MAIN.
               CALL 'PGEND' USING ARG1 ARG2 ARG3.
               CALL 'PGEND' USING ARG1.
                GOBACK.
    
           END PROGRAM P53991.
    
    The same problem has been observed in RDz 9.1.1.1.
    

Local fix

Problem summary

  • Memory error occurs during Generate Test Case action if the
    target program contains multiple calls with varying number of
    parameters as follows:
     PROCEDURE DIVISION.
           MAIN.
               CALL 'PGEND' USING ARG1 ARG2 ARG3.
               CALL 'PGEND' USING ARG1.
                GOBACK.
    
           END PROGRAM P53991.
     zUnit could not handle such a case correctly.
    

Problem conclusion

  • zUnit action has been corrected so that multiple calls with
    varying number of parameters could be tested.
    
    The problem listed in this APAR has been resolved with
    IBM Rational Developer for System z V9.1.1.4 Fix Pack which
    is available from the Recommended Fixes support download page:
    http://www-1.ibm.com/support/docview.wss?rs=2294&uid=swg27006335
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI63372

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    911

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-05-31

  • Closed date

    2016-09-30

  • Last modified date

    2016-09-30

  • 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

    RATL DEV FOR SY

  • Fixed component ID

    5724T0700

Applicable component levels

  • R911 PSY

       UP



Document information

More support for: Rational Developer for System z

Software version: 9.1.1

Reference #: PI63372

Modified date: 30 September 2016