changing chars in a file from DCL

alpha server
May 26, 2008 at 15:23:38
Specs: VMS 7.3-2, alpha server, 32gb
I want to replace on DCL level some string patterns in a file ,how can I do it? In unix from example there is a command utily SED which can be used to replace strings in a file.

See More: changing chars in a file from DCL

Report •

May 27, 2008 at 03:16:44
SED is available for VMS as well. Best is to get the freeware GNV package.
Follow the freeware path at the VMS home page

Also PERL is availabe for VMS, follow the above opensource or freeware links at HP.
There a zillions of find-replace scripts on the the various perl archives.

You can as well use VMS editors like TPU/EVE, see examples in my utilities directory:

And interactive, using the EDT editor:
edit/edt/comm=sys$input tmp.tmp

changes all strings "old" to "new" in file tmp.tmp.

Report •

May 27, 2008 at 13:09:34
In addition, without installing anything else to basic VMS, see my GSR.COm (Global Search and Replace):

Report •

May 27, 2008 at 13:12:23

Report •

Related Solutions

December 29, 2010 at 14:40:11
This works good for what I need it to do.
I added a line that insures you supply a file name for the P1 parameter.
If you don't it tries to a append all files in the directory.


Report •

Ask Question