How to purge jobs submitted using rexx

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Sunil Hyderbad
Registered Member
Posts: 22
Joined: Thu Jan 30, 2014 9:58 am

How to purge jobs submitted using rexx

Post by Sunil Hyderbad »

We have a automated rexx script which will submit job every 5 seconds or something
Of around 3800 jobs
When I submit the rexx script
It floods my spool
When no of jobs in my spool goes beyond 300
Operator calls me for more no of jobs
So I want to purge jobs once it is completed via batch jcl itself
You have any idea on this.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1900
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to purge jobs submitted using rexx

Post by Robert Sample »

What is the operator's concern -- the number of jobs in the system or the amount of spool output?

Talk to your site support group about using a MSGCLASS that does not retain the output on the spool. If your site has a product that supports batch processing of spool data, you MIGHT be able to do what you want - you would have to check with the product vendor.

For plain z/OS, there really is no way to do what you want.
Sunil Hyderbad
Registered Member
Posts: 22
Joined: Thu Jan 30, 2014 9:58 am

Re: How to purge jobs submitted using rexx

Post by Sunil Hyderbad »

Thanks Robert.

We can purge them using REXX though, I think. I am not REXX expert but that's what one of my friend's suggest.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1900
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to purge jobs submitted using rexx

Post by Robert Sample »

Get your friend's help to code up the REXX -- I don't use it often enough to provide any assistance.
User avatar
zum13
Active Member
Posts: 113
Joined: Thu May 04, 2023 12:58 am

Re: How to purge jobs submitted using rexx

Post by zum13 »

OK, I'm going to put my sysprog's hat on and ask you the question that I would ask if I were maintaining the system you're running on...

What exactly are you doing that needs a job submitting every five seconds?

The problem with jobs is that you've got absolutely no guarantee as to when they are going to run. If this is something that is timing critical, then you are likely to run into issues as well as annoying other users and the people running the system. From my perspective, and without knowing what's going on, the spooled output sounds like the consequences of a design issue rather than something that needs to be worked around.
Sunil Hyderbad
Registered Member
Posts: 22
Joined: Thu Jan 30, 2014 9:58 am

Re: How to purge jobs submitted using rexx

Post by Sunil Hyderbad »

All the question makes sense, though I don not have very accurate answer for them. As I am just made part of the project and have this situation with me.

Just now I am thinking to answer what is being asked to do rather then tweaking the process which definitely requires a second look. Though right now I am thinking if I keep on purging the jobs also, then that might help.
Sunil Hyderbad
Registered Member
Posts: 22
Joined: Thu Jan 30, 2014 9:58 am

Re: How to purge jobs submitted using rexx

Post by Sunil Hyderbad »

Thanks for all your help. For bow we have just brought the number of jobs to a lower number per REXX execution.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”