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
 

 

Trigger another job through CONTROL-M

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Trigger another job through CONTROL-M
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: 2436
Location: Netherlands, Amstelveen

PostPosted: Sat Mar 31, 2012 5:45 pm    Post subject:
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    Post subject:
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    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Thu Jul 19, 2012 12:09 am    Post subject:
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    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 Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Control-M manuals JPVRoff All Other Mainframe Topics 0 Fri May 20, 2016 11:15 am
No new posts How to track incoming input files tha... shreya19 JCL & VSAM 6 Thu Feb 25, 2016 6:15 pm


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