Articles

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 •


#1
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
to
http://h71000.www7.hp.com/opensourc...

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:
http://wwwvms.mppmu.mpg.de/~huber/u...

And interactive, using the EDT editor:
edit/edt/comm=sys$input tmp.tmp
s/old/new/wh
exit

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



Report •

#2
May 27, 2008 at 13:09:34

In addition, without installing anything else to basic VMS, see my GSR.COm (Global Search and Replace):
http://wwwvms.mppmu.mpg.de/util_roo...




Report •

#3
May 27, 2008 at 13:12:23


Report •

Related Solutions

#4
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.

Jim


Report •


Ask Question