|
View previous topic :: View next topic
|
| Author |
Message |
Furor
New User
Joined: 04 Jun 2009 Posts: 30 Location: Bangalore
|
|
|
|
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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| Furor, what product supports those commands? |
|
| Back to top |
|
 |
Furor
New User
Joined: 04 Jun 2009 Posts: 30 Location: Bangalore
|
|
|
|
| We are using ZEKE at our site |
|
| Back to top |
|
 |
gylbharat
Active Member
.jpg)
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
 |
|
|