Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Having trouble renaming file within VMS 7.3-2

SOLVED
Go to solution
Jorge Cocomess
Super Advisor

Having trouble renaming file within VMS 7.3-2

Greetings,
I'm having little trouble renaming a file from my home directory sys$login to another directory. Does this have anything to do with
OSD-5??


Thanks,
J

Crow-TBC> rename TEST1.TXT;1 disk23:[crow_archive]TEST1.TXT;* /log
%RENAME-E-NOTRENAMED, DISK5:[USER.XXX]TEST1.TXT;1 not renamed
-RENAME-E-NOTSAMEDEV, Cannot RENAME to a different device

5 REPLIES
Willem Grooters
Honored Contributor
Solution

Re: Having trouble renaming file within VMS 7.3-2

Simple - it's what the last line states.
SYS$LOGIN seems to be DISK5:[USER.XXX], and you try to rename to another device (disk23). And that cannot be done by RENAME. You have to copy and delete the original.
Willem Grooters
OpenVMS Developer & System Manager
Robert_Boyd
Respected Contributor

Re: Having trouble renaming file within VMS 7.3-2

you can use the following command to do the whole operation in one go:

$ backup TEST1.TXT;1 disk23:[crow_archive]TEST1.TXT; /log /verify /delete /new

Robert
Master you were right about 1 thing -- the negotiations were SHORT!
Arch_Muthiah
Honored Contributor

Re: Having trouble renaming file within VMS 7.3-2

Jorge,

We can rename dirs/files within the same disk device only. If we want to move the files to difft disk, then as William and Bob said, we have to use use copy/delete or backup for this purpose.


Archunan
Regards
Archie
Jorge Cocomess
Super Advisor

Re: Having trouble renaming file within VMS 7.3-2

You guys are right. I thought I was able to do this for this entire time until I did some more research.

Thanks so much for fast responses.

J.
Jorge Cocomess
Super Advisor

Re: Having trouble renaming file within VMS 7.3-2

Many Thanks to a great site and great professional IT people.