Operating System - OpenVMS
1823749 Members
3875 Online
109664 Solutions
New Discussion юеВ

Looking for an editing program in VMS??

 
ngoht20
Frequent Advisor

Looking for an editing program in VMS??

Is there an editing program like "Vi" that I can execute from the DCL command???

Because I want to write notes for myself using some kind of editing app sort of like Vi used in UNIX.

thanks
26 REPLIES 26
Hein van den Heuvel
Honored Contributor

Re: Looking for an editing program in VMS??

What's wrong with $EDIT or good old $EDIT/EDT ?

There are VI implementation for OpenVMS.
http://thomer.com/vi/vi.html#versions
- VIM http://www.vim.org/htmldoc/os_vms.html
- VILE http://www.openvms.compaq.com/freeware/freeware50/vile092/
- GNV VI (tpu based) http://h71000.www7.hp.com/opensource/gnvreadme_first.html

Personally, for quick notes I just used $CREATE notes.txt
or
$APPEND TT: my-notes.txt


hth,
Hein van den Heuvel
Robert Gezelter
Honored Contributor

Re: Looking for an editing program in VMS??

ngoht20,

As Hein has noted, there is many editors available on OpenVMS, including several implementations of vi (I refer you to his response for a list of vi implementations).

Natively, there are also a variety of editors:
- TPU (the default for the EDIT command)
- EDT (a screen and line based editor originally from the RSX-11 family)
- TECO (a character based editor that goes back many many years, long before the PDP-11 or VAX was on the scene)
- SLP (a batch editing program)

All of the above are fully documented.

- Bob Gezelter, http://www.rlgsc.com
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

Thanks!!!!!!

EDIT is amazing...

But one question. How can I save on what I had wrote in EDIT and then retreive it later so I will not have to writ the whole letter again??

Thanks

ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

For example. I had created a memo outline in EDIT, so I will I save this memo and then be able to re-open it again without writing the same stuff all over again???

Can someone please provide or post me an example command on how to do this? Thanks.
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

When I save stuff in EDIT that I had wrote in, if I give that a filename to save, what format should it be named?

Like this???

mydocument.txt or what??
ChaimBu
Frequent Advisor

Re: Looking for an editing program in VMS??

OpenVMS does not restrict you in any way as to how to name files. However, there are unwritten conventions, and accordingly you should save your files with a .TXT extension.

Thus if you saved the file and named it myfile.txt then when you want to reedit it at some later time, all you have to do is:

$edit myfile.txt

It's as simple as that!

Good luck!

Chaim
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

OK, once I am in EDIT and after I write my stuff or whatever....How can I SAVE that file???

How can I save as MYFILE.TXT in the first place???

Hein van den Heuvel
Honored Contributor

Re: Looking for an editing program in VMS??

While at the OpenVMS command line try:

$HELP EDIT
and answer /TPU to the next prompt.

While in the editor touch the PF2 key (above 8 on num keypad) or the PF4 key (top right on keypad) and type HELP there.

To save the file, just exit the editor with control-Z (the universal end-of-input character in OpenVMS). Or do that PF4 thing using the WRITE and EXIT commands.

Note be sure to check your terminal emulator for keyboard mapping settings.

Good luck,
Hein.
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

For example:

I want to create an outline form using a text editoe in VMS.

First, I want to save the file as MYFILENAME.TXT and then proceed to write my notes...

Now, the next step, how would I SAVE that file in order for me to reopen that file name in order for everything to be intaact the way I wrote the memo??

Please ---- Can someone please post the exact steps in order to this??

Examples are great..thats how I learn by someone giving me the exact detail steps on how to do this...

atul sardana
Frequent Advisor

Re: Looking for an editing program in VMS??

Dear ,

$edit/edt myfile.txt

*write content or any data and for save file use
ctrl+Z then
:exit

if you dont want to save file then use
ctrl+Z then
:quit
myfile.txt;1 is saved is your current directory.

*when you reopen this file and modify anything then it will automatically saved and create a new version of myfile.txt;2
and you can see
$dir myfile.txt
directory sys$root:[sysmgr]
myfile.txt;1 myfile.txt;2

ok
please give points to all who gives help to you.

thanks
Atul Sardana
I love VMS
Jon Pinkley
Honored Contributor

Re: Looking for an editing program in VMS??

Have you looked at any of the examples in the manuals? They are available in both http and pdf from the VMS documentation link in the useful links at the bottom of the VMS formum page.

http://h71000.www7.hp.com/doc/index.html

Why don't you give us an example of how you would do it in vi, then we will understand what you are trying to do.

There are several ways to do what you want.

Here is one.

1. edit memo.template, create the template text and exit the editor. Thsi will create memo.template.

2. When you want to use this as the start of a new memo, for example memo.help, use the command:

$ edit memo.template/out=memo.help

This will load memo.template, but then treat it as if you were editing memo.help. Add the text you want and exit. The file will be saved as memo.help

Please read the documentation; it has examples.
it depends
comarow
Trusted Contributor

Re: Looking for an editing program in VMS??

There's plenty of documentation on EDT,
or I prefer TPU, because TPU support
split screen editing, like the old EMACs.

If you go edit/tpu and hit PF2, there's a help key, hit any key, it will tell you what it does.

PF4 is the DO key, and it will bring up a command prompt, where you can enter almost
any do command.

At the Do Prompt you can write

DO: Write - (saves changes)
DO: Find
Do: Replace
Do: Quit - (con't save changes.
DO: DCL command
(Does any DCL Command from teh editor.

Regardless, in both EDT or EVE,
You can
EDIT filename
to open an existing file name, or create a new one,
Control-Z exits and writes a copy.

Don't confuse SAVE with Write. Save in TPU saves the customized version of TPU, we've all done that.


Finally, there are free ware versions of VI for VMS, which for you would probably be the best solution. I believe they call one version VIM.

I don't know if it's still available, but there is a wonderful X Window full featured
word processor of publication quality called
DECWRITE, which is a lot like Word on steroids.

Before the current war on terror, there was a much more violent and horrific war, the debates on the best editor in the world.
It is amazing we survived this onslaught.

Then there are those that know for a fact
TECO is the only editor for a real programmer.

Have fun!
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

Ok, before I write anything in EDIT, how can I FIRST save-as or name my file for example like MYFILE.TXT and then write my notes in EDIT and then save it again after I had finished writing the data?

Also, to reopen MYFILE.TXT to re-edit it again, how would I do that??

Can someone please show me? What if I want to reopen MYFILE.txt to modify and then save the file again?

Hein van den Heuvel
Honored Contributor

Re: Looking for an editing program in VMS??

Stop whining. Just try it!

Enjoy!

Hein.
David B Sneddon
Honored Contributor

Re: Looking for an editing program in VMS??

Can YOU show US how YOU do it using vi?

We can then show you how to translate
your sequence into something that will
work on VMS...

Dave
comarow
Trusted Contributor

Re: Looking for an editing program in VMS??


Find the manual, guide to text processing.
It not, find a n old book buyt Terry Shannon,
Introduciton to VMS. This is not s substituate
for reading the documentation.

Or get them to download a free ware copy of VI and your poblems are solved.

In EVE, find PF 4, the do key.

You can get a file and incorporate thet,
you can write out a file with another name, so you have both. It does everything you

Best place to start, though a bit dated.
http://www.a1books.com/cgi-bin/mktSearch?act=showDesc&code=gbase&rel=1&ITEM_CODE=096147291X

Crash guide in introductory text processing
http://books.google.com/books?vid=ISBN1555582796&id=uTXrp9_kG5wC&pg=RA1-PA167&lpg=RA1-PA167&ots=EJ62z6eHUy&dq=vms+guide+to+text+processing&sig=0pXn28JVB3PHUpbZrbFC39IniGUwant.

http://h71000.www7.hp.com/doc/83final/6048/6048pro_088.html
Hoff
Honored Contributor

Re: Looking for an editing program in VMS??

I'd probably start with the OpenVMS User's Guide, a document in the current OpenVMS manual set.

MAIL, text editing, file naming, DCL programming, and other topics are covered in that document.

This and the other OpenVMS manuals also contain knowledge that could simply never be learned here in the forums.

http://www.hp.com/go/openvms/doc

The next among these documents would likely include the Programming Concepts manual, or the System Manager's manuals, or both -- depending on your particular goals and local requirements.

ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

I GOT IT.....what I did is this:

$edit ANDY01.TXT then I wrote my memo and then hit crtl-Z to save....

Now, lastly....

How do I RENAME the file and hoe do I DELETE the ANDY01.TXT completely if I wanted to??
Karl Rohwedder
Honored Contributor

Re: Looking for an editing program in VMS??

Pehaps a look into $ HELP or in the fine manuals?

Rename it using $ RENAME old new and delete it using $ DELETE ANDY01.TXT;* (;* deletes all versions!).

The DCL interpreter is build along the english language, so the english verb gives a good starting point into HELP.

regards Kalle
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

I tried and it said this:

$ delete andy01.txt
%DELETE-E-DELVER, explicit version number or wild card required

What does this mean??? I need to delete this file somehow if I wanted to.
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

NEVER MIND!!!! I got it....

thanks to all of you...and I will read more about the points thing if I time...
ngoht20
Frequent Advisor

Re: Looking for an editing program in VMS??

Oh...and also...

Do I need to use the same WILD-CARDS even when RENAMING a file name like in the DELETE command???


Thanks
Steven Schweda
Honored Contributor

Re: Looking for an editing program in VMS??

> Do I need to use the same WILD-CARDS even
> when RENAMING a file name like in the
> DELETE command???

Do you get a similar error when you try a
RENAME?

Did you read the HELP for DELETE?

HELP DELETE file Parameter

Did you read the HELP for RENAME?

HELP RENAME Parameters

> I will read more about the points thing if
> I time...

I'd concentrate on reading more in the HELP
and the manuals before I worried much about
other, less important things.
Doug Phillips
Trusted Contributor

Re: Looking for an editing program in VMS??

ngoht20,

It appears you have lost the link to one of your earlier questions. For your convenience, here is a shortened link:

< http://tinyurl.com/2opw23 >

You might want to bookmark that page for future reference.

Also for your convenience, here is a shortened link to all of your posted questions and their answers:

< http://tinyurl.com/2rjw8x >

It might help you now to go back and reread them.