IBM Support

PI37948: RDZ LPEX AND COBOL EDITOR "SHOW IN" >> "PROGRAM CONTROL FLOW" RESULTS IN CRRZJ0004E CLASSCASTEXCEPTION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Rational Developer for System z v9.1.1 LPEX and COBOL editor
    "Show in" >> "Program Control Flow" results in CRRZJ0004E
    ClassCastException
    
    The problem occurs when the RDz user opens COBOL source and
    selects, in the editors context menu, "Show in" >> "Program
    Control Flow"
    
    Below a snippet of the code that can cause this problem
    
               ....
               EVALUATE THIS-VARX-YZ
                 WHEN '0'
                   MOVE VARX                 TO VARYZ
                   CONTINUE
                 WHEN OTHER
                   PERFORM ROUTINE1
               CONTINUE.
          *END-SELECT-VARXYZ SECTION.
    
           UPDATE-RESTART SECTION.
    
               MOVE W-IN1-KEY                TO W-INSERT-KEY
               MOVE W-IN1-KEY                TO W-INSERT-VALUES
                                                COMMIT-KEY
               ....
    
    Note:
    - The EVALUATE statement does not have an END-EVALUATE
      and the period behind the second "CONTINUE."
    - For COBOL this code is legal.
    

Local fix

  • Add an "END-EVALUATE." before the "CONTINUE."
    
               ....
               EVALUATE THIS-VARX-YZ
                 WHEN '0'
                   MOVE VARX                 TO VARYZ
                   CONTINUE
                 WHEN OTHER
                   PERFORM ROUTINE1
               END-EVALUATE.
               CONTINUE.
          *END-SELECT-VARXYZ SECTION.
    
           UPDATE-RESTART SECTION.
    
               MOVE W-IN1-KEY                TO W-INSERT-KEY
               MOVE W-IN1-KEY                TO W-INSERT-VALUES
                                                COMMIT-KEY
    

Problem summary

  • LPEX and COBOL editor "Show in" >> "Program Control Flow"
    results in CRRZJ0004E ClassCastException when the program is
    missing an END-EVALUATE statement.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI37948

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    911

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-03-27

  • Closed date

    2015-10-16

  • Last modified date

    2015-10-16

  • 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 #: PI37948

Modified date: 16 October 2015