View previous topic :: View next topic
|
Author |
Message |
Elixir
Active User
Joined: 08 Feb 2009 Posts: 116 Location: CHENNAI/NEW JERSEY - INDIA/USA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
... using ...?
SDSF?
IOF?
Sysview? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
did You ever hear about SDSF block commands ? |
|
Back to top |
|
|
rahul1586
New User
Joined: 04 Nov 2008 Posts: 28 Location: Mumbai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Elixir
Active User
Joined: 08 Feb 2009 Posts: 116 Location: CHENNAI/NEW JERSEY - INDIA/USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Most systems are set up to automatically delete output.
Why is this not sufficient? |
|
Back to top |
|
|
Elixir
Active User
Joined: 08 Feb 2009 Posts: 116 Location: CHENNAI/NEW JERSEY - INDIA/USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
rahul1586
New User
Joined: 04 Nov 2008 Posts: 28 Location: Mumbai
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
sripallu
New User
Joined: 11 May 2005 Posts: 12 Location: India
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Your tech support folks at your site are usually the ones in charge of those rules. Just ask. |
|
Back to top |
|
|
sripallu
New User
Joined: 11 May 2005 Posts: 12 Location: India
|
|
|
|
Ok I thought there might be some commands we can quickly run
Thanks Terry !! will do |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Paul Voyner
New User
Joined: 26 Nov 2012 Posts: 52 Location: UK
|
|
|
|
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 |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
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 |
|
|
|