RXS_moveFile()

This subprocedure allows the programmer to move an existing IFS file to a different folder in the IFS. Additionally, it allows for the file to be renamed in the new location.

This subprocedure can also be used to rename an existing IFS file by specifying the same filepath in the pFrom and pTo parameters but with a different filename (or extension).

Subprocedure Prototype

D RXS_moveFile    pr            10i 0

Moves the specified IFS file to a different specified location.

D  pFrom                              value like(RXS_FilePath)

The qualified IFS file name of the file to be moved.

Example: /myFolder/myFile.xml

D  pTo                                value like(RXS_FilePath)

The qualified IFS file path to which the file will be moved.

Example: /myNewFolder/myNewFileName.xml