I have written a CL routine to send a file via FTP using the OVFDBF commands for INPUT and OUTPUT.
This works fine, however I need to be able to edit my FTP script file somehow in order to change the name of the file in the PUT command.
Clearly you cannot pass a variable to this but is there anyway to change the file name within a script through a CL program?
The only way I can see you can change the filename in the PUT command is to manually edit beforehand, which is not a working solution for a daily job. Any ideas around this problem would be greatly received.