Can you confirm if the FTP site is the source of the file & the client from where you are running the job is the destination?
We're initiating the FPT on Linux doing a "get" from MF, so client is indeed destination.
Can't you use the Advanced options to delete the source file? -
After the completion of a successful file transfer the source file will be
Determines how a source file is handled after a successful transfer:
Left as is: Retains the source file with the original name
Deleted: Deletes the source file
Renamed: Renames the source file with a valid name for the operating system of the host computer (256 characters).
Moved: Moves the file to a specified location (full path only) (Not available for MVS)
1 of 1 people found this helpful
If that is the case, you can do it in 2 transfers in an MFT job:
1. Connect to FTP & transfer the file to destination. Click on 'Advanced' to delete the source file & create an empty file in the destination.
2. Second transfer in the same job to copy the empty file to MFT source. Delete the local file after transfer & Overwrite the file in destination.
I think they need just the contents of the source file cleared.
This would work but are you sure second ftp will only happen after first ftp succeeded ?
Let's assume first ftp fails for whatever reason, will second ftp start, yes or no ?
Any failed transfer will abort the job by default. Also, as you can see from the above screenshots, you even have the option to fail the job if 'delete' of the source file fails.
As you can see from the screenshot, you need to explicitly select the option to 'continue on failure'. So, default is to NOT continue on failure.
Even if it somehow moves on to the second transfer, it will not have the empty file to transfer as the first step didn't finish & didn't create the empty file. So, it has nothing to transfer & will fail too.