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

Trigger another job through CONTROL-M


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

New User


Joined: 10 Mar 2005
Posts: 41
Location: United States Of America

PostPosted: Sat Mar 31, 2012 5:08 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sat Mar 31, 2012 5:45 pm
Reply with quote

Its called control-m (produced by BMC). So ask the job scheduling people.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Mon Apr 02, 2012 6:55 pm
Reply with quote

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
View user's profile Send private message
chandana k

New User


Joined: 18 Jul 2012
Posts: 2
Location: INDIA

PostPosted: Wed Jul 18, 2012 12:21 pm
Reply with quote

// 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
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Thu Jul 19, 2012 12:09 am
Reply with quote

Hi,

Did u check intenal reader through JCL.

Please check here

If it is Contorl-M, Scheduling is the good idea icon_smile.gif
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 Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Help Control-R IBM Tools 2
No new posts Try to understand IMS control block IMS DB/DC 0
No new posts Control-M Delay All Other Mainframe Topics 0
This topic is locked: you cannot edit posts or make replies. Control-m JOB executing even when the... Compuware & Other Tools 6
Search our Forums:

Back to Top