HP OpenVMS Systems

ask the wizard
Content starts here

Search and Replace Text String in Files?

» close window

The Question is:

We have just had to change our system architecture as a result the data that
 formerly resided on a disk called  $4$dka700 is now on $4$dka500
Unfortunately the system was built using a heavy reliance on physical device
 names . How can we quickly FIND AND REPLACE all instances of the former with
 the latter?
I was hoping that DCL "search" would offer a replace function but have not been
 able to find anything.
Thank you in advance

The Answer is :

  Then use SEARCH to locate existing references, and replace them via
  PATCH or EDIT or Perl or otherwise.  You can use PATCH (see the FAQ
  for OpenVMS Alpha PATCH details) to replace the string within any
  file -- the OpenVMS Wizard would replace the string with a logical
  name of equal length and NOT with the string $4$DKA500.)

answer written or last revised on ( 9-JUL-2001 )

» close window