User`s guide

RENAME
a protected file. You can change a protected file’s name but not its protected
status, unless you also use the /NOPROTECTION option.
/NOPROTECTION unprotects a file.
/QUERY
Causes RT–11 to request confirmation before it performs the operation. /QUERY
is useful on operations that involve wildcards, when you may not be sure which
files RT–11 selected for the operation.
You must respond to a query message by typing Y (or any string beginning with
Y)
RETURN
to initiate execution of an operation. RT–11 interprets any other
response to mean NO; it does not perform the specified operation. The following
example demonstrates querying:
.RENAME/QUERY DU0:(PIP1.SAV PIP.SAV)
Files renamed:
DU0:PIP1.SAV to DU0:PIP.SAV ? Y
Using the /QUERY option also provides a quick way of performing operations on
several files. For example, renaming several files is easier if you use /QUERY.
You can then specify Y for each file you want renamed, as the following example
shows:
.RENAME/QUERY *.BAK *.MAC
Files renamed:
DK:PROG1.BAK to DK:PROG1.MAC ? Y
DK:PROG2.BAK to DK:PROG2.MAC ? Y
DK:PROG6.BAK to DK:PROG6.MAC ? Y
DK:LML8A.BAK to DK:LML8A.MAC ?
DK:LML9 .BAK to DK:LML9 .MAC ? Y
Note that if you specify /QUERY in a command line that also contains a wildcard
in the file specification, the confirmation messages that display on the terminal
replace the log messages that would normally appear.
/[NO]REPLACE
/REPLACE is the default mode of operation for the RENAME command. If a file
exists with the same name as the file you specify for output, RT–11 deletes that
duplicate file when it performs the RENAME operation.
/NOREPLACE prevents execution of the RENAME operation if a file with the
same name as the output file you specify already exists on the same device.
The following example uses /NOREPLACE. In this case, the output file already
existed and no action occurs:
.RENAME/NOREPLACE DU0:TEST.SAV DU0:DUP.SAV
?PIP-W-Output file found, no operation performed DU0:TEST.SAV
/SETDATE[:date]
Causes RT–11 to put the date you specify on all files it renames. If you specify
no date, the current system date is used. If the current system date is not set,
206 RT–11 Command Descriptions