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

Delete Jobs from Spool


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

Global Moderator


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

PostPosted: Wed Oct 05, 2011 8:15 am
Reply with quote

... using ...?

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 05, 2011 11:28 am
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
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

Moderator Emeritus


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

PostPosted: Wed Oct 05, 2011 7:16 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Oct 05, 2011 7:54 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 05, 2011 8:28 pm
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
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: 2455
Location: Hampshire, UK

PostPosted: Wed Oct 05, 2011 10:09 pm
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

Moderator Emeritus


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

PostPosted: Wed Oct 05, 2011 10:59 pm
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
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: 1249
Location: Richfield, MN, USA

PostPosted: Thu Aug 21, 2014 6:45 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Aug 21, 2014 7:07 pm
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: 52
Location: UK

PostPosted: Fri Aug 22, 2014 12:12 pm
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: 1249
Location: Richfield, MN, USA

PostPosted: Fri Aug 22, 2014 6:30 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
Search our Forums:

Back to Top