IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • No replies
fknubben
fknubben
5 Posts

Pinned topic IBM i - OPM vs ILE COBOL - performance characteristics

‏2012-09-10T14:20:44Z |
Hi,

having some fun with the LPEX editor and don't know if I can do anything about it.

In SEU I can copy a piece of text and paste this over existing text. This then only updates the characters replaced by the text that is being pasted.

In the LPEX editor I can't seem to replicate this behaviour. Instead, the editor seems to insert the text, rather than "paste over". And if I use ctrl-v in the sequence number area or the indicator position then things get even stranger - it seems the paste stops at the end of that 'field' rather than continuing on in the next part of the line.

I have looked for it but I cannot find any settings that might control this. Does anyone know how to trick the LPEX editor into the SEU behaviour?
Updated on 2012-09-12T06:20:12Z at 2012-09-12T06:20:12Z by fknubben
  • fknubben
    fknubben
    5 Posts

    Re: IBM i - OPM vs ILE COBOL - performance characteristics

    ‏2012-09-10T14:23:50Z  
    sorry, wrong topic title for this thread - should have read:

    LPEX Editor (OPM COBOL) and Ctrl-V (paste)
  • SystemAdmin
    SystemAdmin
    403 Posts

    Re: IBM i - OPM vs ILE COBOL - performance characteristics

    ‏2012-09-10T17:11:17Z  
    I'm not an LPEX expert, but have you tried to toggle the INSERT to replace instead of insert? Some editors are sensitive to that setting.
  • fknubben
    fknubben
    5 Posts

    Re: IBM i - OPM vs ILE COBOL - performance characteristics

    ‏2012-09-11T09:43:55Z  
    I'm not an LPEX expert, but have you tried to toggle the INSERT to replace instead of insert? Some editors are sensitive to that setting.
    yes, tried that. Seems to work subtly different in a way, but can't quite say what. But it still seems to interpret the various COBOL positional parts as separate paste area, rather than simply zapping existing text and replacing with what is in held under ctrl-v.
  • SystemAdmin
    SystemAdmin
    403 Posts

    Re: IBM i - OPM vs ILE COBOL - performance characteristics

    ‏2012-09-11T14:23:55Z  
    • fknubben
    • ‏2012-09-10T14:23:50Z
    sorry, wrong topic title for this thread - should have read:

    LPEX Editor (OPM COBOL) and Ctrl-V (paste)
    Hi,

    LPEX has the ability to switch between various selection and copy/paste behaviours.
    The default is the stream selection. This is the same as most windows editors.
    In this mode, the paste will replace whatever is selected at the cursor. Since the cursor is just a blinking bar, it inserts at the bar. But if you select the region you want replaced and hit Ctrl-V. It will replace that selection as you wish.

    I encourage you to explore the "Select" submenu in the context menu when you right click in the editor.
    You can select a line (Alt-L) character (Alt-B) or an arbitrary rectangle across lines (Alt-R). Hitting this combo once will set the anchor of this selection. Moving the cursor and hitting the combo (Alt-L,B or R) again will select everything from the anchor to the current cursor location.
    Once you have a selection, you can do a number of things which are listed in the context menu under the "Selected" submenu.
    Alt-C Copy
    Alt-M Move
    Alt-Z Overlay (this is the one you are looking for in your question)
    Alt-D Delete
    Alt-K Upper case
    Alt-I Lower case
    Alt-F7 Shift left
    Alt-F8 Shift right
    Alt-U Unselect

    You will find this method much faster than SEU and even windows for line based move/copy/overlay

    Have fun
  • fknubben
    fknubben
    5 Posts

    Re: IBM i - OPM vs ILE COBOL - performance characteristics

    ‏2012-09-12T06:20:12Z  
    Hi,

    LPEX has the ability to switch between various selection and copy/paste behaviours.
    The default is the stream selection. This is the same as most windows editors.
    In this mode, the paste will replace whatever is selected at the cursor. Since the cursor is just a blinking bar, it inserts at the bar. But if you select the region you want replaced and hit Ctrl-V. It will replace that selection as you wish.

    I encourage you to explore the "Select" submenu in the context menu when you right click in the editor.
    You can select a line (Alt-L) character (Alt-B) or an arbitrary rectangle across lines (Alt-R). Hitting this combo once will set the anchor of this selection. Moving the cursor and hitting the combo (Alt-L,B or R) again will select everything from the anchor to the current cursor location.
    Once you have a selection, you can do a number of things which are listed in the context menu under the "Selected" submenu.
    Alt-C Copy
    Alt-M Move
    Alt-Z Overlay (this is the one you are looking for in your question)
    Alt-D Delete
    Alt-K Upper case
    Alt-I Lower case
    Alt-F7 Shift left
    Alt-F8 Shift right
    Alt-U Unselect

    You will find this method much faster than SEU and even windows for line based move/copy/overlay

    Have fun
    yes, thanks Edmund.

    Yesterday I was pointed towards the "Select" options and that certainly did the trick!

    Link:https://www.ibm.com/developerworks/forums/message.jspa?messageID=14885223&tstart=0