HP OpenVMS Systems

ask the wizard
Content starts here

SUBSTITUTE Syntax in (retired) EDT Editor?

» close window

The Question is:

I want to substitute "%--" with "/*-" in one of the file. I started using
 EDIT/EDT and used "substitute" but it failed.
This is what I did :
    1       %-------------------------------------------------------
I got the following error message
Unexpected characters after end of command.
Substitute command assumes that "%--" has to be replaced with space as soon as
 it encounters a third "/" ( before *). Hence it gives error at "*" saying
 "Unexpected characters".
Kindly please let me know how to change "%--" with "/*-" using EDIT/EDT. My
 intention is to perform this EDIT/EDT operation within a command procedure.

The Answer is :

  EDT was retired a decade or more ago, please move to a more recent
  editor -- consider TPU/EVE with the available EDT keyboard selection,
  or any of other available editing options.
  Within EVE, press the DO key and enter the command
    REPLACE %-- /-
  As for EDT -- and there are a number of limits within this particular
  text editor -- please use a delimiter that is not part of the search
  nor the replacement text string.  For instance:

answer written or last revised on ( 10-MAR-2003 )

» close window