To copy a file from one IFS location to another, you can use the CPY command –
CPY OBJ(‘/MyDirectory/MyFile.csv’) TOOBJ(‘/MyOtherDirectory/MyOtherFile.x’).
To send an IFS file via FTP, use the FTP or STRTCPFTP command to start a file transfer session. After logging in, you can enter <i>namefmt 1</i> to address the hierarchical file system of the IFS. From there, the <i>cd</i> (change directory) and <i>lcd</i> (change local directory, i.e., the source system, if you’re transferring between different systems and need to distinguish which is which) will allow you to navigate the directory structure. And then the <i>put</i> command is what copies the specified file from the source location to the target location.