HP OpenVMS Systemsask the wizard | 
	
 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 :
 
$EDIT/EDT FILE.TXT
    1       %-------------------------------------------------------
SUBSTITUTE/%--//*-/WHOLE
 
 
I got the following error message
*SUBSTITUTE/%--//*/WHOLE
                 ^
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 : 
 
  With EDT:
 
    substitute \%--\/*-\w
 
 
 
  |