RENAME PROCEDURE command: Difference between revisions
(Automatically generated page update) |
|||
Line 23: | Line 23: | ||
<p>The RENAME PROCEDURE command changes the name of a procedure. The old official name of the procedure is kept as an alias, and all existing procedure aliases are preserved.</p> | <p>The RENAME PROCEDURE command changes the name of a procedure. The old official name of the procedure is kept as an alias, and all existing procedure aliases are preserved.</p> | ||
<p>The RENAME command is rejected if the old procname does not exist, if the new procname cannot be added to the file (either because it already exists or because there is not enough space), or if multiple procedure files were specified for a group. </p> | <p>The RENAME command is rejected if the old procname does not exist, if the new procname cannot be added to the file (either because it already exists or because there is not enough space), or if multiple procedure files were specified for a group. </p> | ||
<p>When it processes RENAME PROCEDURE, <var class="product">Model 204</var> ends any current User Language update unit and begins a non-backoutable update unit. If a <var class="product">Model 204</var> command non-backoutable update unit is in progress, RENAME PROCEDURE is included in that update unit. For more information about <var class="product">Model 204</var> update units, see | <p>When it processes RENAME PROCEDURE, <var class="product">Model 204</var> ends any current User Language update unit and begins a non-backoutable update unit. If a <var class="product">Model 204</var> command non-backoutable update unit is in progress, RENAME PROCEDURE is included in that update unit. For more information about <var class="product">Model 204</var> update units, see [[File integrity and recovery#Update units and transactions|Update units and transactions]].</p> | ||
[[Category: File manager commands]] | [[Category: File manager commands]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Latest revision as of 17:53, 3 February 2016
Summary
- Privileges
- File manager
- Function
- Changes the name of a procedure
Syntax
RENAME [PROCEDURE] old-procname, new-procname
Where:
old-procname and new- procname are procedure names. When the command is executed, the new procname becomes the official name of the procedure.
If PROCEDURE is omitted, Model 204 assumes that a procedure is being renamed.
Syntax notes
The comma is required.
RENAME PROCEDURE cannot be issued from within a procedure.
Example
RENAME PROC NEW EMPLOYEE, EMP RENAME AUDIT, OLDAUDIT
Usage notes
The RENAME PROCEDURE command changes the name of a procedure. The old official name of the procedure is kept as an alias, and all existing procedure aliases are preserved.
The RENAME command is rejected if the old procname does not exist, if the new procname cannot be added to the file (either because it already exists or because there is not enough space), or if multiple procedure files were specified for a group.
When it processes RENAME PROCEDURE, Model 204 ends any current User Language update unit and begins a non-backoutable update unit. If a Model 204 command non-backoutable update unit is in progress, RENAME PROCEDURE is included in that update unit. For more information about Model 204 update units, see Update units and transactions.