Renaming a File Using FILELIST
What if you decide that a file identifier is not quite right? Perhaps it is too similar to the identifier for another file. Or maybe you want to create a new file with that identifier. You can change the file name or file type (but not the file mode) with the RENAME command.
Cmd space
next to the file you want to rename (just like the DISCARD command).
You process it by pressing Enter. Use this format of the RENAME command:
Rename / newfilename newfiletype filemodeFirst you type RENAME in the Cmd space. You continue
typing the rest of the command right over the information that is
already on the line. The slash (/) stands for the file identifier
of the file you want to rename. You then type the new file identifier
(file name, file type, and file mode). Press Enter to carry out the
RENAME command.
Suppose you want to rename VACATION CAMPING A to GREAT OUTDOORS A. (If you did the exercises in Editing Files, you can rename your file by following these instructions.)
VACATION CAMPING A1 F 80 8 1 5/04/90 10:50:59You type the RENAME command right over this line, as shown in the following example. Remember to type all three parts of the new file identifier: file name, file type, and file mode.
rename / great outdoors a1 F 80 8 1 5/04/90 10:50:59
│ │ │ │
│ │ │ └────> filemode
│ │ └────> newfiletype
│ └────> newfilename
└────> stands for VACATION CAMPING A1
The figure shows the command rename
/ great outdoors a.
* VACATION CAMPING A1 ** Discarded, Renamed, or Relocated **The notice means that your file VACATION CAMPING A has been renamed. Its new identifier, GREAT OUTDOORS A, replaces the old one in the FILELIST display when you press PF2. PF2 is set to the refresh function. This means that the list is refreshed with new information. In this case, the new information is the new file identifier.