View previous topic :: View next topic
|
Author |
Message |
sameer
New User
Joined: 10 Mar 2005 Posts: 41 Location: United States Of America
|
|
|
|
Hi,
I have a requirement where I need to trigger another job through a jcl step.
example:
JOB1
step 01 - some functionality
step 02 - some functionality
step 03 - need to trigger Job02 using control-m utility
Anyone know the utility name i can use in step 3 so that it will trigger another job job2 ?
Thanks, |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Its called control-m (produced by BMC). So ask the job scheduling people. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
BMC provides a proc to do this. The details are in the Utilities Guide instead of the actual Control-M manual.
Your job will need something like this:
Code: |
//CTMJOB EXEC CTMJOBPR,
// OUT=*,OUTDUMP=*,
// PARM.S1='NODACHK'
//DAJOB DD *
ORDER DSN=%%PDS_SCHED, -
MEMBER=%%MYTABLE,JOB=%%MYJOB, -
ODATE=%%NEWDATE,FORCE
/* |
But you'll need to include other set up parms using:
Code: |
//JCLLIB JCLLIB ORDER=(your_control_m_installtion_library)
//*
// INCLUDE MEMBER=IOASETD |
The included member will need to match the environment your are trying to use. At our site, we have development and a production environment. So we have two different members to select from.
You will also need to make sure the owner of the job has access to order/force the jobs in Control-M, or this job step will get security errors and fail.
I use this all the time and it puts the jobs on the AJF as if they ordered or forced through the panels. It's very handy. |
|
Back to top |
|
|
chandana k
New User
Joined: 18 Jul 2012 Posts: 2 Location: INDIA
|
|
|
|
// INCLUDE MEMBER=IOASET
//STEP5 EXEC CTMJOBPR,PARM='NODACHK'
//ORDERDD DD DISP=SHR,DSN=Table PDS
//DAJOB DD *
ORDER DDNAME=ORDERDD MEMBER=Table JOB=JOB2 ODATE=ODATE FORCE
/*
//* |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
Did u check intenal reader through JCL.
Please check here
If it is Contorl-M, Scheduling is the good idea |
|
Back to top |
|
|
|