Page 1 of 1

Renaming a file

Posted: Sat Aug 02, 2008 5:34 pm
by GSIDSXGrp
Hi,
I am using FTP stage to FTP a sequential file from server1 to server2. After ftp is complete I want to rename the file at server2.
Is there any way or stage in which I could rename the file?
Regards.

Posted: Sat Aug 02, 2008 6:37 pm
by keshav0307
it can be rename while FTP only.
eg. put file1 file2.
so the file1 in server1 will be transfferred as file2 on server2

Posted: Sat Aug 02, 2008 9:21 pm
by chulett
Not the only way, but certainly the simplest. As noted, just give it whatever name you like, regardless of the original sequential filename, in the FTP stage.

You can also use the Telnet capabilities of the stage and the 'Telnet After Command' to rename the landed file. Simplest to just drop it with the desired name because just because you have FTP permissions on a server doesn't mean you can telnet there as well.