Change Filename [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Change Filename
Purpose
Changes the default file name.
Default Syntax
T
Description
This command changes the default file name so that subsequent execution
of the Keep Text command keeps the text to a file other than the one that
was initially read in. This command is useful when you either want to
create a new file from an existing file, or if you want to edit an
existing file and save it to a new file while retaining the existing
file.
The command functions similarly to executing the Keep Text command and
saving the text to another file name, except that the Keep Text command
saves text when you rename the file, whereas the Change Filename command
does not.
When you execute the Change Filename command, HP EDIT prompts you for the
new file name. When you specify the desired file name, HP EDIT stores
the name until you execute the Keep Text command. When you subsequently
execute the Keep Text command, HP EDIT saves the text to the specified
file name and creates a new file if the specified file name does not
currently exist.
Procedure
To change the file name:
1. Press the T key, or press the File Commands function key, followed
by the Change Filename function key. HP EDIT displays the prompt
New filename: on the message line.
2. Type the desired file name and press Return. HP EDIT stores the
new file name and displays the new file name on the message line.
Example
To change the file name from Old to New:
1. Press the T key, or press the File Commands function key, followed
by the Change Filename function key. HP EDIT displays the
following prompt on the message line:
2. Type new at the cursor position as shown:
3. Press Return. HP EDIT changes the file name as shown:
To change the file name to a new file name in a different group:
1. Press the T key, or press the File Commands function key, followed
by the Change Filename function key. HP EDIT displays the
following prompt on the message line:
2. Type program.hpedit at the cursor position as shown:
3. Press Return. HP EDIT changes the file name to program in the
group hpedit as shown:
Related Commands
Change Filename From Text
Insert Filename
Keep File
MPE/iX 5.0 Documentation