View previous topic :: View next topic
|
Author |
Message |
ramprakashn
New User
Joined: 13 Sep 2013 Posts: 5 Location: India
|
|
|
|
A scheduled job (JobA) failed in production environment as the file created by this job was used by another developer's job (JobB). Actually, developers should not run their job in production in batch hours, but they don't listen or check for the resource usage before running their jobs in PROD.
The scenario here is that the JobA needs a file exclusively but it is in use by JobB.
To avoid such failures/abends as mentioned above, Please let me know whether there is any option in JES or ESP to check the resource availability for JobA prior to its execution and cancel the jobB that is locking the resources required for the JobA. We can differentiate JobA and JobB using their USERID.
The requirement here is to PRIORITIZE JobA as it is a production job and cancel the developer's job. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
RACF? Why would a developer have access to a Production resource? |
|
Back to top |
|
|
ramprakashn
New User
Joined: 13 Sep 2013 Posts: 5 Location: India
|
|
|
|
Hi Bill, Most of the developers have production resource access.
Please let me know any other solution other than RACF. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
enforce that all jobs executed by developers (userid) be in a certain class
which only executes during certain hours. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, if you have no Audit, Compliance or other Regulatory or Statutatory implications with your data, and the only access they have is Read...
So, non-financial environment. No "person data" on any production datasets. Simple manufacturing/warehousing-type system? |
|
Back to top |
|
|
ramprakashn
New User
Joined: 13 Sep 2013 Posts: 5 Location: India
|
|
|
|
Dick, Thanks for your suggestion, I will discuss with our admins regarding this.
Bill, No, we have certain datasets/resources which cannot be accessed by anyone and certain that can be read by developers. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
If you have command processor job you can issue a GRS command to show if a dataset is in use and by whom:
D GRS,RES=(SYSDSN,'data.set.name') |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
speak with Your AUTOMATION/SCHEDULING people
to automate the cancel of the offending job
anyway letting developers run jobs in production is a pretty bad practice
( whatever the environment ) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Letting program testing interfere with production is not tolerated on well-managed systems.
(Re)publish the rule(s) of when this kind of job may be run. Cancel offenders. If it continues, discipline is in order.
Better would be to use test copies of production data. |
|
Back to top |
|
|
|