IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Checking Resource availability before running a job


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramprakashn

New User


Joined: 13 Sep 2013
Posts: 5
Location: India

PostPosted: Fri Dec 20, 2013 4:37 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7312
Location: Inside the Matrix

PostPosted: Fri Dec 20, 2013 4:47 pm
Reply with quote

RACF? Why would a developer have access to a Production resource?
Back to top
View user's profile Send private message
ramprakashn

New User


Joined: 13 Sep 2013
Posts: 5
Location: India

PostPosted: Fri Dec 20, 2013 5:24 pm
Reply with quote

Hi Bill, Most of the developers have production resource access.

Please let me know any other solution other than RACF.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Fri Dec 20, 2013 5:37 pm
Reply with quote

enforce that all jobs executed by developers (userid) be in a certain class
which only executes during certain hours.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7312
Location: Inside the Matrix

PostPosted: Fri Dec 20, 2013 5:47 pm
Reply with quote

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
View user's profile Send private message
ramprakashn

New User


Joined: 13 Sep 2013
Posts: 5
Location: India

PostPosted: Fri Dec 20, 2013 5:50 pm
Reply with quote

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
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 488
Location: London

PostPosted: Wed Feb 19, 2014 8:50 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10697
Location: italy

PostPosted: Wed Feb 19, 2014 10:03 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Feb 20, 2014 12:42 am
Reply with quote

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
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 -> All Other Mainframe Topics

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts APCT Abend while running an online CI... CICS 1
No new posts Running rexx on zOS with JCL CLIST & REXX 3
No new posts Running a REXX exec program using ZOSMF CLIST & REXX 3
No new posts S0C7 abend while running a Cobol Program COBOL Programming 2
No new posts Reading mainframe job spool while the... JCL & VSAM 7

Back to Top