RENAME
The RENAME command renames the specified local file to a new name.
RENAME ----------- FROM ------------- file path ---------------->
>-- TO --------------- file path ---------------->
>-- REPLACE ---------- *NO ----------------------|
*YES
Keywords
FROM |
Nominate the path and file name to be renamed. The path and file name must exist. |
TO |
Nominate the new path and file name. The path name must exist. The TO file must be in the same directory as the original FROM file. |
REPLACE |
The default value is *NO. To allow a file to be replaced by the renamed file this keyword must be set to *YES. |
Examples
RDML
USE BUILTIN(JSM_COMMAND) WITH_ARGS('RENAME FROM(order.xml) TO(order2.xml)') TO_GET(#JSMSTS #JSMMSG)
RDMLX
use builtin(jsmx_command) with_args(#jsmhandle 'rename from(order.xml) to(order2.xml)') to_get(#jsmsts #jsmmsg)