IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to delete a JOB automativally at the end of same job???


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Nov 12, 2007 2:59 pm
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
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: 1436
Location: Bangalore,India

PostPosted: Mon Nov 12, 2007 4:01 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:

Back to Top