5.31.9 RENAME

The RENAME command renames the specified local file to a new name.

Syntax:

Command

Keyword

Value

Developer notes

RENAME

FROM

value

Nominate the path and file name to be renamed. The path and file name must exist.

TO

value

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

*YES

Allows a file to be replaced by the renamed file.

*NO

*NO is the default.

 

Example

RENAME FILE(/folder/file.csv) TO(/folder/file2.csv)