Operating System - OpenVMS
1753510 Members
5726 Online
108795 Solutions
New Discussion юеВ

Re: Looking for an editing program in VMS??

 
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