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

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: 7309
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: 6966
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: 7309
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 Member


Joined: 31 Dec 2009
Posts: 580
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
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: 19244
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

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts REXX - Dataset checking in a do forev... CLIST & REXX 6
Search our Forums:

Back to Top