How-to Delete remote file
Moderators: chulett, rschirm, roy
How-to Delete remote file
Hello,
I have a requirement to read files present on remote Windows shared drive and process it further. Once processing is complete the ETL code should be able to delete remote files. To read remote file on Windows shared drive I use FTP stage but I'm unable to figure out how to delete that file from DataStage or UNIX. If the remote server were to be UNIX then I would use rsh but not sure how to proceed since it's Windows server. Any help would be appreciated.
Thanks for your time
I have a requirement to read files present on remote Windows shared drive and process it further. Once processing is complete the ETL code should be able to delete remote files. To read remote file on Windows shared drive I use FTP stage but I'm unable to figure out how to delete that file from DataStage or UNIX. If the remote server were to be UNIX then I would use rsh but not sure how to proceed since it's Windows server. Any help would be appreciated.
Thanks for your time
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
in cases where you don't know which files you will get (ex 3 files one day 6 files next day) what if new file emerges just after you have "gotten" your files.ray.wurlod wrote:Does not the FTP stage allow an "after" telnet command? You could use this to delete the file.
Don't you risk getting 3 files, but in the "after" you will delete 4 files ???
in cases where you don't know which files you will get (ex 3 files one day 6 files next day) what if new file emerges just after you have "gotten" your files.ray.wurlod wrote:Does not the FTP stage allow an "after" telnet command? You could use this to delete the file.
Don't you risk getting 3 files, but in the "after" you will delete 4 files ???