Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Checking Resource availability before running a job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Checking Resource availability before running a job
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Fri Dec 20, 2013 4:47 pm    Post subject: Reply to: Checking Resource availability before running a jo
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    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Fri Dec 20, 2013 5:47 pm    Post subject: Reply to: Checking Resource availability before running a jo
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    Post subject:
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: 437
Location: London

PostPosted: Wed Feb 19, 2014 8:50 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Feb 19, 2014 10:03 pm    Post subject: Reply to: Checking Resource availability before running a jo
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

Site Director


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

PostPosted: Thu Feb 20, 2014 12:42 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Syncsort - NULL in Integer field chec... nartcr SYNCSORT 4 Thu Oct 06, 2016 6:47 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts Reasonable way of checking wildcards ... sergeyken CLIST & REXX 5 Wed Sep 07, 2016 8:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us