1 of 1 people found this helpful
Write a unix script. In script put if else condition like if file found it will delete, rename or move file to other location. In else block write only exit 0. call script in post session command. Hope this will help.
Hi Juned ,
I would agree with Vinod
You can add command task in your workflow prior to your regular session.And follow these steps
1.Configure command task with command ls YourSourceFileLocation and also check "Fail Task if any command Fails" in properties of command task. (Checks for file existing)
2.Link Command task to your session task , and configure link arrow as status=succeeded (Skips session if file doesn't exist)
3. In Session task configure Post session success command with delete/rename/move command as per you requirement. (Remove/Rename/Move after completion of load).
Hope this helps.
I would recommend to Archive data upto certain period of time before deleting it,this might be needed incase of any investigations.
I want smeller senior,
I want to delete files from archive folder more than 30 days, after 30 days file should delete.
Please suggest the solution for it wilt details information.
Agent running in Windows server