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
 
delete the spool job after 15 min automatically ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: delete the spool job after 15 min automatically ?
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 30, 2008 2:51 pm    Post subject:
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    Post subject:
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

Site Director


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

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

Hello,

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

Senior Member


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

PostPosted: Mon Jun 30, 2008 9:54 pm    Post subject: Reply to: delete the spool job after 15 min automatically ?
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    Post subject:
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

Site Director


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

PostPosted: Tue Jul 01, 2008 7:39 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Jul 01, 2008 10:26 pm    Post subject: Reply to: delete the spool job after 15 min automatically ?
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics 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 Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am

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