Hi,
I need to delete the data in the Staging source Table when the Job is Completed running. Is there any method to delete in the Job itself? can we do in the Plug ins or have to write a after job subroutine?
Cheers,
Victor
Delete the Source File in a Job after run
Moderators: chulett, rschirm, roy
Delete the Source File in a Job after run
Victor Auxilium
Only method is after-job routine. I wouldn't even do it that way. I would separate that functionality from the job and put it in a stand alone job with a command stage or BATCH logic to issue the appropriate sql script. What a pain in the rear every time you run that job in development to have it wipe out your source data.
...mutters to himself about modularity...![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
...mutters to himself about modularity...
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
As usual agreeing with Ken.
Another advantage of separating deletion of the staging data from the job that uses them is that you get easier restartability in the event that the job fails to complete successfully.
Modularity, I guess.![Smile :)](./images/smilies/icon_smile.gif)
Another advantage of separating deletion of the staging data from the job that uses them is that you get easier restartability in the event that the job fails to complete successfully.
Modularity, I guess.
![Smile :)](./images/smilies/icon_smile.gif)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Re: Delete the Source File in a Job after run
Also again Modularity. If your jobs are not documented well the person who comes after you will have to wonder which process is deleting the data. In this case all he/she needs to do is look at the second job which deletes the source data and will appreciate your Development standards ![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)