User`s guide
RENAME
• RT–11 requires you to use the /SYSTEM option to rename system files when you
use a wildcard in a file type. However, if you specify a SYS file type, you do not
need to specify the /SYSTEM option to RENAME system files.
• To rename files that cover bad blocks (BAD files), you must explicitly give the file
name and file type of the specified BAD file. Since BAD files cover bad blocks on
a device, you usually do not need to rename or otherwise manipulate these files.
• Because of the file protection feature, you cannot execute any RENAME
operations that result in deleting a protected file. For example, you cannot
rename a file to the name of a protected file that already exists on the same
volume.
Specifying a Date as an Argument to an Option
Some options accept a date as an argument. The format for specifying the date is:
[dd][:mmm][:yy]
where:
dd specifies the day (a decimal integer in the range 1–31).
mmm specifies the first three characters of the name of the month.
yy specifies the year (a decimal integer in the range 73–99).
The default value for the date is the current system date. If you omit any of the
date values (dd, mmm, or yy), RT–11 uses the values from the current system date.
For example, if you specify only the year 90 and the current system date is May 4,
1991, RT–11 uses the date 4:MAY:90. If the current date is not set, it is considered
0 (the same as for an undated file in a directory listing).
If you have selected timer support through the system generation process, but have
not selected automatic end-of-month date advancement, make sure that you set the
date at the beginning of each month with the DATE command. If you fail to set the
date at the beginning of each month, the system prints -BAD- in the creation date
column of each file created beyond the end-of-month. (Note that you can eliminate
-BAD- by using the RENAME/SETDATE command after you set the date.)
Options
/BEFORE[:date]
Renames only those files created before the specified date. If no date is specified,
the current system date is used.
The following command renames all MAC files on DU1 created before April 21,
1991:
.RENAME/BEFORE:21:APR:91 DU1:*.MAC DU1:*.BAK
Files renamed:
DU1:A.MAC to DU1:A.BAK
DU1:B.MAC to DU1:B.BAK
DU1:C.MAC to DU1:C.BAK
204 RT–11 Command Descriptions










