Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Delete Jobs from Spool

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Oct 05, 2011 8:05 am    Post subject: Delete Jobs from Spool
Reply with quote

Hello,

I wish to delete/purge jobs from spool because it is difficult to purge the jobs one by one...it takes a lot of time.

Please guide me in deleting job from Spool.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Oct 05, 2011 8:15 am    Post subject: Reply to: Delete Jobs from Spool
Reply with quote

... using ...?

SDSF?
IOF?
Sysview?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Oct 05, 2011 11:28 am    Post subject: Reply to: Delete Jobs from Spool
Reply with quote

did You ever hear about SDSF block commands ?
Back to top
View user's profile Send private message
rahul1586

New User


Joined: 04 Nov 2008
Posts: 28
Location: Mumbai

PostPosted: Wed Oct 05, 2011 12:12 pm    Post subject: Reply to: Delete Jobs from Spool
Reply with quote

Hello

you can use this SDSF command :

/$p jq,jm=jobname,days>n

For example, the command /$p jq,jm=xyz*,days>2
will purge all the jobs starting with xyz except the jobs from the last 2 days.
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: Wed Oct 05, 2011 7:16 pm    Post subject:
Reply with quote

Hello,

Quote:
you can use this SDSF command :

/$p jq,jm=jobname,days>n
I have worked for at least 5 organizations that have terminated people for doing this. . .

Sometimes there is a job or 2 that should not be deleted in the "block".

Several of my sites have restricted (or eliminated) the use of purging j0bs this way.
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Oct 05, 2011 7:31 pm    Post subject:
Reply with quote

Rahul,

I am currently allowed to Delete/purge jobs which I have executed.
and I have to do it manually.

I am not authorised for the command you mentioned.

Is Purging job using rexx possible?
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: Wed Oct 05, 2011 7:54 pm    Post subject:
Reply with quote

Hello,

Most systems are set up to automatically delete output.

Why is this not sufficient?
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Wed Oct 05, 2011 8:08 pm    Post subject:
Reply with quote

DS,

I agree with you....in our shop jobs are auto purged after 3-4 days.

As a developer we submit Umpteen number of jobs.

We are instructed to clear the jobs from the Spool on a daily basis.

Its very cumbersome to delete/purge each and every job from spool daily that too manually...
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Oct 05, 2011 8:28 pm    Post subject: Reply to: Delete Jobs from Spool
Reply with quote

repeat on...
hit PF1 or look at the sdsf manuals for the block command <syntax>
not really much.. YOu know or You do not ...
when the list of jobs filtered as needed is displayed enter //P on the first line and // on the last one
the command will be repeated for all the lines between the first and the last
Back to top
View user's profile Send private message
rahul1586

New User


Joined: 04 Nov 2008
Posts: 28
Location: Mumbai

PostPosted: Wed Oct 05, 2011 8:32 pm    Post subject: Reply to: Delete Jobs from Spool
Reply with quote

Quote:

Several of my sites have restricted (or eliminated) the use of purging jobs this way.


Dick,
In my organization the spool gets full as a large number of batch jobs are run everyday.
These jobs have jobnames starting with the same letters(Q3*,etc).
So, we use this command for purging the jobs.
I was not aware that it has been restricted at many sites, will take a note of it.Thanks.



Elixir,

Quote:


Is Purging job using rexx possible?


Yes it is possible.But it will again require authority, which I guess you might not be having.So you can go to the spool at the end of the day and sort the jobs by owner and purge them using //p .... // . Do let me know if you need any clarification in this.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Wed Oct 05, 2011 10:09 pm    Post subject:
Reply with quote

Of course, if you are a neat and tidy person you would delete jobs from the spool as you go along - not in one great lump at the end of the day. Much more friendly for other users.
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: Wed Oct 05, 2011 10:59 pm    Post subject:
Reply with quote

Hello,

As well as yourself. . . There is no good reason to keep a bunch of the same test in the queue. . .

Consider using copy/paste to put needed bits into a document you can refer to.

I suspect that most of these many jobs are not needed as soon as the next one is run. . .
Back to top
View user's profile Send private message
sripallu

New User


Joined: 11 May 2005
Posts: 12
Location: India

PostPosted: Thu Aug 21, 2014 6:37 pm    Post subject: Reply to: Delete Jobs from Spool
Reply with quote

Activating old thread !

no authorization to delete the jobs with command mentioned above !!

i also dont know whether my shop has the ability to auto delete the jobs, how can i find it ?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Thu Aug 21, 2014 6:45 pm    Post subject:
Reply with quote

Your tech support folks at your site are usually the ones in charge of those rules. Just ask.
Back to top
View user's profile Send private message
sripallu

New User


Joined: 11 May 2005
Posts: 12
Location: India

PostPosted: Thu Aug 21, 2014 7:00 pm    Post subject:
Reply with quote

Ok I thought there might be some commands we can quickly run

Thanks Terry !! will do
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: Thu Aug 21, 2014 7:07 pm    Post subject:
Reply with quote

Seeing as there are two commands shown above, which one doesn't work for you - and have you tried the other command shown ?
Back to top
View user's profile Send private message
Paul Voyner

New User


Joined: 26 Nov 2012
Posts: 51
Location: Switz

PostPosted: Fri Aug 22, 2014 12:12 pm    Post subject:
Reply with quote

What does "I am not authorised for the command you mentioned " mean ?
You mean RACF won't allow you ? Or someone told you not to use these commands ?
You've already had enough sensible suggestions here about what to do, but if it's a RACF issue you could try an auto command. Example

Code:
$TA,I=3600,'$cojq(*),H>24,Q=X'


Read JES commands before doing anything, to minimize the risk of purging your entire spool.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1238
Location: Richfield, MN, USA

PostPosted: Fri Aug 22, 2014 6:30 pm    Post subject: Reply to: Delete Jobs from Spool
Reply with quote

Quote:
if it's a RACF issue you could try an auto command.

If it's a RACF issue, I would suggest talking with your security folks before you get yourself into hot water.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us