Hi,
I have certain values from a flatfile to be moved to a table and once it is moved i should be able to clear the file for next process.How could this be made possible.
Thanks in advance.
Regards,
Rajiivnb
file should be cleared after taking values from the file
Moderators: chulett, rschirm, roy
Rajiv
It's quite simple! You can use a shell command as an after job subroutine like echo '' > File1. Care should be taken to set the option that this command should execute only if the job completes successfully or otherwise you will lose your file.
Alternatively you can also achieve this by calling the same command after the job successfully executes from the shell script itself which you are using to run your job. Hope it is clear for you!
Thanks!
It's quite simple! You can use a shell command as an after job subroutine like echo '' > File1. Care should be taken to set the option that this command should execute only if the job completes successfully or otherwise you will lose your file.
Alternatively you can also achieve this by calling the same command after the job successfully executes from the shell script itself which you are using to run your job. Hope it is clear for you!
Thanks!
Vignesh.
"A conclusion is simply the place where you got tired of thinking."
"A conclusion is simply the place where you got tired of thinking."
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
![Idea :idea:](./images/smilies/icon_idea.gif)
We also use tar and compress to periodically create 'tar balls' of files like this to help manage the storage of them.
Food for thought.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers