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

How Does JLS ENQ SHR/EXC work


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

New User


Joined: 04 Jun 2009
Posts: 30
Location: Bangalore

PostPosted: Fri Sep 09, 2011 8:44 am
Reply with quote

Hi,

I have a scenario where I want Job ABC to hold if either of the jobs DEF or GHI is runnig.

Will the below code suffice?

Code:
//ABC JOB 123,PRODUCTION,   
//        CLASS=3,MSGCLASS=J       
//*
//*+JLS ENQ DEF,EXCLUSIVE         
//*+JLS ENQ GHI,EXCLUSIVE   
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 09, 2011 9:10 am
Reply with quote

Furor, what product supports those commands?
Back to top
View user's profile Send private message
Furor

New User


Joined: 04 Jun 2009
Posts: 30
Location: Bangalore

PostPosted: Fri Sep 09, 2011 10:00 am
Reply with quote

We are using ZEKE at our site
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Sep 09, 2011 10:01 am
Reply with quote

You can use CNTL parameter...

Code:

/*CNTL control-name,EXC


Usage:

/*CNTL control-name,EXC/SHR - controls concurrent execution of jobs

control-name is a user-defined, 1-8 character name whose only significance is if it is used in other jobs on a /*CNTL statement
a job will hold exclusive rights to the control-name or share it
Example:

// JOB A
/*CNTL PAYROLL,EXC
// JOB B
/*CNTL PAYROLL,SHR
// JOB C
/*CNTL PAYROLL,SHR
1) Job A and B cannot run at the same time nor can A and C

2) Job B and C can run simultaneously

3) If Job A is running, Job B or C will wait until it finishes and vice versa
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Negative value - packed field - Natur... Java & MQSeries 0
No new posts TWS - ETT File triggering does not wo... IBM Tools 4
No new posts SAS Work space - B37 abend JCL & VSAM 15
No new posts IBM Pcomm macro startmacro command do... IBM Tools 0
Search our Forums:


Back to Top