IBM Support

PI05585: RDz LPEX editor Cut / Paste problem COBOL full line only pasting prefix area part

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Rational Developer for System z LPEX editor Cut / Paste problem
    COBOL full line only pasting prefix area part
    
    When editing a COBOL program it appears the paste function acts
    differently depending on how you selected the text (with the
    mouse or keyboard).
    
    If the user selects a line using the keyboard (Shift + Arrow
    Down and press CNTL-C) and paste that line into a blank line,
    the entire line is pasted.  Everything works as expected.
    
    If the user selects a line by placing the cursor at col 1 and
    Shift+End and press CNTL-C,. Then  the paste from col 1 will
    only paste in the prefix area the 1st 6 characters and stop.
    
    If the user starts the paste in any column after column 6 the
    paste will work but the positions will be off because the user
    didn't start in column 1.
    
    The user does not expect the paste to stop at prefix area
    boundary but to paste the complete line.
    
    Notes/Observations:
    Problem occurs in RDz v8.5.1.1 and RDz v9.0
    
    Problem does not occur on RDz 7.6.2.4 and RDz 8.0.3.4
    
    ?metadata?\.trace (all settings FINEST)
    attachments .trace files for copy shows no difference
    
    Comparing .trace goodpaste.trace with badpaste.trace shows a
    difference with empty text:??:
    
    [Mon Oct 07 08:09:15 CEST 2013] 1
    com.ibm.systemz.cobol.editor.core.parser.CobolLexerImpl
    com.ibm.systemz.common.editor(FINEST): handleDocumentEvent(
    offset: 601, length: 1, timestamp: 20
    text:??
    [Mon Oct 07 08:09:15 CEST 2013] 1
    com.ibm.systemz.cobol.editor.core.parser.CobolLexerImpl
    com.ibm.systemz.common.editor(FINEST): handleDocumentEvent(
    offset: 601, length: 0, timestamp: 21
    text:?xxxx1 ?
    [Mon Oct 07 08:09:15 CEST 2013] 81
    com.ibm.systemz.cobol.editor.core.parser.LexUnitRegionManager
    com.ibm.systemz.common.editor(FINEST): newDocumentEvent: offset:
    601, length: 1, timestamp: 21
    text:?xxxx1 ?
    on LexUnitRegionList/stored-3152 size=1
    Region: 253:28
    LexUnitRegionList/saved-3152 size=0
    LexUnitRegionList/lexed-3152 size=0
    

Local fix

Problem summary

  • When editing a COBOL program it appears the paste function acts
    differently depending on how you selected the text (with the
    mouse or keyboard).
    
    When pasting text at the start of a line in a COBOL file,
    the pasted text stopped at the first field boundary. These
    fields were enforced by the parser and the behavior of paste
    with regards to them was not configurable.
    

Problem conclusion

  • The behaviour of paste with regards to fields, and the value of
    the fields themselves, can be controlled in 9.1.1 via
    Window->Preferences->LPEX Editor->System z LPEX Editor->COBOL
    Parser. Setting 'Paste Behavior' to 'Ignore Fields' will result
    in the complete line being pasted.
    
    The problem listed in this APAR has been resolved with
    IBM Rational Developer for System z V9.1.1.0 Refresh 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

    PI05585

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-11-06

  • Closed date

    2014-12-11

  • Last modified date

    2014-12-11

  • 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

[{"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":"900","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
17 October 2021