View previous topic :: View next topic
|
Author |
Message |
reddy307 Currently Banned New User
Joined: 09 Jun 2006 Posts: 18
|
|
|
|
Dear All,
How to delete a JOB automativally at the end of same job???
Example:
I have one PDS lets say name of the PDS as AAAA.BBBB.CCCC and assume a member name JJJJ as a job.
I want to execute the job JJJJ and at the end of successful execution of job JJJJ, I want to delete the job JJJJ from the PDS which is AAAA.BBBB.CCCC, since I dont want the job JJJJ further.
Please let me know the solution. Looking forward for your valuable suggestion regarding this.
Thanks in advance. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
as a last step insert an IDCAMS step with the delete command !! |
|
Back to top |
|
|
Binaya
New User
Joined: 03 Jul 2007 Posts: 77 Location: Hyderabad
|
|
|
|
Write a step with IBM utility IEHPROGM at the end of the job to delete the member of the PDS with COND parameter to check the successful execution of the previous steps.. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Reddy,
Any business/tech reasons (apart from saving space) for deleting the job after execution? |
|
Back to top |
|
|
|