IBM Support

PI89222: FIND/REPLACE FUNCTION DOES NOT WORK CORRECTLY IN COBOL EDITOR.

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

  • When having several occurrences to replace in a COBOL source
    code file, the replace function works correctly only on the
    first occurrence.
    If the "Replace" button is hit a second time after having done
    the first replacement, the newly replaced text is updated.
    
    Open a cobol program;
    Hit CTRL+F to open the the wizard,
    Enter "IBM" in "Find" field,
    Enter "TEST" in "Replace" field,
    Click "Find" button,
    Click "Replace" button,
    Click "Replace" button again.
    
    The text on the line of the previous replace gets reduced after
    the first replace.
    IBM - replace with MB
    IBM COBOL FILE
    
    becomes
    MB COBOL FILE
    then
    MBCOBOL FILE
    then
    MBOBOL FILE
    
    Each replace is modifying three characters even though the
    string to be replaced no longer matches.
    

Local fix

Problem summary

  • The find and replace function will operate multiple times in the
    same text location
    without a new find on the original string.
    
    The text on the line of the previous replace gets reduced after
    the first replace.
    IBM - replace with MB
    IBM COBOL FILE
    
    becomes
    MB COBOL FILE
    then
    MBCOBOL FILE
    then
    MBOBOL FILE
    
    Each replace is modifying three characters even though the
    string to be replaced no longer matches.
    

Problem conclusion

  • The find and replace functionality was modified so that multiple
    replace operations were not possible.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI89222

  • Reported component name

    DEV FOR Z SYS

  • Reported component ID

    5724T0700

  • Reported release

    301

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-10-23

  • Closed date

    2018-01-24

  • Last modified date

    2018-01-24

  • 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

    EXP FOR Z/OS CL

  • Fixed component ID

    5655EXP00

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSBDYH","label":"IBM Explorer for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"301","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
24 January 2018