How to transfer a file to a remote node, where the source file name is every time different and not distributed within a variable?
For this scenario it is required that first all old matching files have to be deleted, before a new file can be added to the source directory and the process is submitted to transfer the file.
Following process can be used to copy such a file:
RENA1 RUN TASK PNODE (PGM=Windows)
SYSOPTS="cmd(ren C:\Bye*.* Transfer.txt)"
In this run task step via windows command a rename of the
previous new added file is done to a constant file name Transfer.txt.
In the copy step then this constant file name Transfer.txt is referenced.