IBM Support

PH25791: IDZ COBOL EDITOR RENAMING A VARIABLE LEADS TO INCORRECT ERROR MESSAGE ON COPYBOOK IF THE REPLACE STATEMENT IS BEING USED

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

  • Closed as program error.

Error description

  • IBM Developer for Z/OS - IDz - v14.2.2
    
    The user has a COBOL program that includes a copybook, which
    includes other copybooks and one or two of them are included
    with REPLACE / REPLACE OFF statements.
    
    When editing this COBOL program with IDz COBOL Editor, if the
    user tries to rename a variable using the Refactor > Rename
    function, the copybook will be marked as in error, with the
    message:
    Copybook '<copybook-name>' contains the following error:
    "ERROR TOKEN" unexpected tokens ignored"
    
    Besides the warning message, checking the bottom of the IDz
    window the user will see the Tooling icon has a warning,
    hovering it says "Tooling out of sync due to syntax error".
    

Local fix

  • Make any change to the COBOL program, like adding a space
    between the copy statement and the copybook name for example,
    then save the program, it will clear the error and IDz Tooling
    will work again.
    

Problem summary

  • Renaming a variable in a replace statement will lead to an
    incorrect error message in the IDz Cobol Editor when we use
    Replace ... Replace Off statement. The error shown is "Copybook
    '<copybook-name>' contains the following error:
    "ERROR TOKEN" unexpected tokens ignored". " The tooling in the
    editor is also out of sync. This issue occurs in both COBOL and
    LPEX editors.
    

Problem conclusion

  • This issue has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH25791

  • Reported component name

    DEV FOR Z/OS

  • Reported component ID

    5724T0700

  • Reported release

    E20

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-05-26

  • Closed date

    2021-12-03

  • Last modified date

    2021-12-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

    DEV FOR Z/OS

  • Fixed component ID

    5724T0700

Applicable component levels

[{"Line of Business":{"code":"LOB35","label":"Mainframe SW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSTRMM","label":"IBM Developer for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"E20"}]

Document Information

Modified date:
04 December 2021