RENAME monitor command RENAME monitor command Syntax RENAME new_program = old_program Function Change the name of a user program in memory to the new name provided. Usage Considerations RENAME can be processed while a program is executing, but a program that is in an active execution stack cannot be renamed. RENAME does not change the name of a disk file; it changes the name of a program resident in system memory. The command FRENAME changes disk file names. Parameters new_program New name for the program. old_program Current name of the program.
Details If there is already a program in the system memory with the specified new name, the RENAME operation is not performed, and an error message is displayed. In this case, you must first delete the existing program with the new name to perform the RENAME operation. If the user program being renamed is currently assigned to a program module, the program is removed from the module and assigned (with the new name) to the "global" module. (See the MODULE monitor command for information on program modules.) See FRENAME for information on renaming disk files. Example Change the name of program "test.tmp" to "test".
RENAME test=test.tmp Related Keywords COPY monitor command FRENAME monitor command eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 146