Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to delete a JOB automativally at the end of same job???

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
reddy307
Currently Banned

New User


Joined: 09 Jun 2006
Posts: 18

PostPosted: Mon Nov 12, 2007 2:51 pm    Post subject: How to delete a JOB automativally at the end of same job???
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Mon Nov 12, 2007 2:59 pm    Post subject: Reply to: How to delete a JOB automativally at the end of sa
Reply with quote

as a last step insert an IDCAMS step with the delete command !!
Back to top
View user's profile Send private message
Binaya

New User


Joined: 03 Jul 2007
Posts: 77
Location: Hyderabad

PostPosted: Mon Nov 12, 2007 3:00 pm    Post subject: Re: How to delete a JOB automativally at the end of same job
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Nov 12, 2007 4:01 pm    Post subject:
Reply with quote

Reddy,

Any business/tech reasons (apart from saving space) for deleting the job after execution?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us