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

delete the spool job after 15 min automatically ?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bhag281

New User


Joined: 19 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Mon Jun 30, 2008 2:37 pm
Reply with quote

hi all,

can anyone tell me how to delete the spool automatically after 15 min?

Regards
bhag281
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 30, 2008 2:51 pm
Reply with quote

What ................. the whole spool, or specifc spool entries
Back to top
View user's profile Send private message
bhag281

New User


Joined: 19 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Mon Jun 30, 2008 3:25 pm
Reply with quote

hi..

the whole spool.. I need to delete..but automatically...


regards
bhag281
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jun 30, 2008 8:59 pm
Reply with quote

Hello,

What is your area of responsibility within the organization?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Jun 30, 2008 9:54 pm
Reply with quote

bhag281, I think your question is not stated correctly. Perhaps you mean 'How to delete the output of a particular job from the spool, after 15 minutes?"
Back to top
View user's profile Send private message
bhag281

New User


Joined: 19 Jun 2008
Posts: 7
Location: Bangalore

PostPosted: Tue Jul 01, 2008 12:30 pm
Reply with quote

hi pedro,

the jobs in the spool should be automatically deleted? this is what I mean..... ...
Actually I searched in the net and referred some books for the solution. I got an answer, I am not sure of it.
this is the solution............

We have to use the Tivoli Work Load Scheduler for executing this task. First we have to write a JCL, which will delete the jobs in the spool after 15 minutes, then automate it through the Tivoli Work Load Scheduler.

The template of the JCL is shown below.

//USEG003A JOB NAME
//STEP1 EXEC PGM=SDSF
//SYSTRIN DD *
$TA, I=900, ‘&PO JQ,ALL
/*
//
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 01, 2008 7:39 pm
Reply with quote

Hello,

Once again,
Quote:
What is your area of responsibility within the organization?
The reason i ask is that i have supported multiple organizations that have teminated people for issuing a wholesale purge of spooled jobs.

If you are not part of operations or system support, i very much urge you talk with those people and make sure you do not cause yourself major grief while trying to provide a service. . .
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jul 01, 2008 8:13 pm
Reply with quote

If my test runs for an hour and finishes while I'm at lunch I would hate to come back after a half hour and find the results have been purged.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jul 01, 2008 10:26 pm
Reply with quote

Perhaps our concern is not clear to you; perhaps you do not know the terminology.

1. on z/OS, all users share a common spool

2. if you delete all job output, it affects all users of the system

3. it is unusual to delete everything after 15 minutes. My local system keeps job output for seven days. If you wanted to delete after 15 days, it would sound reasonable.

The $TA command in your example will not do what you want. The command runs every 15 minutes, regardless of the state of any jobs. If a job finishes at 9:14:59 and your command next runs at 9:15:00, the job output will be deleted after only 1 second.
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 -> All Other Mainframe Topics

 


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 Search string in job at regular Spool... CLIST & REXX 0
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
Search our Forums:

Back to Top