Change Filename From Text [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Change Filename From Text
Purpose
Changes the default file name using the current line of text.
Default Syntax
None
This command does not have a default key assignment. You can either
assign a key to the command using the Assign Key command or issue the
command using Execute Editor Command.
Description
This command changes the default file name by extracting text from the
current line as the new file name. Subsequently executing the Keep Text
command keeps the text to this new file name rather than the one that was
initially read in.
Command Process
When you execute this command, HP EDIT extracts text from the beginning
of the current line to the first blank. HP EDIT stores this text as the
new file 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.
Command Application
This command is useful when you want to edit the current file name by
inserting it into text using the Insert Filename command. You would
first insert the current file name into text, edit it, and then execute
the Change Filename From Text command. HP EDIT would then change the
file name accordingly, leaving the file name text intact. You could then
erase the modified, inserted file name to restore the file to its
previous state before you inserted the file name into text.
Procedure
To change the file name from text:
1. Move the cursor anywhere on the line in which beginning text is to
be used as a file name.
2. Issue Execute Editor Command (E). HP EDIT displays the prompt
Command: on the message line.
3. Type the command change filename from text and press Return. HP
EDIT stores the new file name and displays the new file name on
the status line.
[REV BEG]
To change the file name from text using block functions:
1. Select an explicit or implicit character block.
2. Perform steps 2 and 3 above.
[REV END]
Related Commands
Change Filename
Change Filename From Text
Insert Filename
Keep File
MPE/iX 5.0 Documentation