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
 

 

control-m IN conditions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Praveen_87

New User


Joined: 10 Mar 2011
Posts: 4
Location: india

PostPosted: Mon Dec 19, 2011 2:29 pm    Post subject: control-m IN conditions
Reply with quote

Hi,

I'm new to control-m job scheduling and like to know how to handle the conditional relationship between two jobs.
For example, If Job A and Job B are loading in the same day then Job B has to act as a successor of Job A. If Job A is not loading on a particular day Job B should run without waiting for Job A.

I read about the Adjust conditions in the group level. But i'm not confirm on this one. Please help.. Thanks in Advance..
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Dec 19, 2011 10:29 pm    Post subject:
Reply with quote

Hello,

Why not run Job A every day and simply end the job on days it need not run, successfully end. Then JobB would run as the successor.

This would of course depend on the logistics of when to run or not run JobA.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Mon Dec 19, 2011 11:02 pm    Post subject:
Reply with quote

As part of the "NEWDAY" set up for Control-M, our shop runs a job that goes out and finds in-conditions like this and removes them.

So in your case, JOB B would have two in-conditions, named something like:
JOBA-ENDED-OK and JOBA-ENDED-####.

Then, a BMC utility runs each morning an looks for any -#### condition without a matching -OK waiting somewhere on the AJF. It then adds the -OK condition so that JOB B won't get stranded.

Look in your production schedule for jobs that have that #### in the names. That's good evidence that your shop is using the same set up.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Dec 20, 2011 4:27 am    Post subject:
Reply with quote

Hi,

the Group entity definition in Group scheduling tables contains a field ADJUST CONDITIONS.

If a value of Y is specified in field ADJUST CONDITIONS, Control-M checks the scheduled jobs for unscheduled conditions.

Unscheduled conditions normally added by other jobs in the same Group scheduling table are removed from the IN statements of the scheduled jobs.


Gerry
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Dec 20, 2011 6:29 am    Post subject: Reply to: control-m IN conditions
Reply with quote

That group thing ONLY works for other jobs in the same group definition.

Chances are that if you're dealing with an established system, they aren't using groups.

I use them for everything new, but legacy stuff has never been converted.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Dec 20, 2011 7:04 am    Post subject:
Reply with quote

Hi,

I thought I made it clear that the ADJUST CONDITIONS applies only to jobs in the same Group scheduling table.
Quote:
Unscheduled conditions normally added by other jobs in the same Group scheduling table are removed from the IN statements of the scheduled jobs


Also can you please explain how this works
Quote:
JOBA-ENDED-OK and JOBA-ENDED-####.



I'm assuming you are talking about maybe dependencies and as far as I know these are usually prefixed by a unique symbol.

So what posts the 2 IN conditions ?


Gerry
Back to top
View user's profile Send private message
Praveen_87

New User


Joined: 10 Mar 2011
Posts: 4
Location: india

PostPosted: Tue Dec 20, 2011 9:00 am    Post subject:
Reply with quote

Thanks for all of your replies..

@Dick,

we can schedule Job A as Dummy on other days but there are lots of jobs(more than 1000). so i'm looking for the alternative..

@Ed,

In our shop, we are coding only one IN condition..
its like GROUPA-JOBA_GROUPB-JOBB ODAT
Job A is creating this condition once it completed. Now my concern is if Job A is not scheduled Job B is waiting for this condition. can you please explain little more about the two IN conditions which you are saying..

@Gerry,

Thanks for your explanation.. I want this scenario for different groups also.. Is there any way to achieve this..
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Dec 20, 2011 9:16 am    Post subject:
Reply with quote

Hi,

you need to read the manual on Handling Unscheduled conditions and maybe dependancies.

I don't understand what you mean by

Quote:
I want this scenario for different groups also


If you understand how to achieve this in one scheduling group table, why is it a problem doing exactly the same in another group scheduling table.

Remember this concept only applies to jobs in the same Group scheduling table.

Gerry
Back to top
View user's profile Send private message
Praveen_87

New User


Joined: 10 Mar 2011
Posts: 4
Location: india

PostPosted: Tue Dec 20, 2011 9:57 am    Post subject:
Reply with quote

Thanks Gerry.. I was meaning the job A from Group A is depending on Job B from Group B..
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue Dec 20, 2011 8:23 pm    Post subject:
Reply with quote

Gerry,
He's trying to tell you that his JOBA and JOBB come from two different groups, so the group dependency ability can't help him.

The #### stuff I was talking about IS a version of the "maybe dependency" that you mention. However, for some reason, at my shop it was done with a suffix, not a prefix.

Advice to TS: Check your production schedule for conditions with #### in them. Let that lead you in the right direction for your shop. It's importatn that you understand that you are NOT the first person to have this concern, and that it was solved a few decades ago.
Back to top
View user's profile Send private message
Praveen_87

New User


Joined: 10 Mar 2011
Posts: 4
Location: india

PostPosted: Wed Dec 21, 2011 9:34 am    Post subject:
Reply with quote

Thanks Ed..
Back to top
View user's profile Send private message
nandhuaru

New User


Joined: 30 Mar 2009
Posts: 2
Location: Chennai

PostPosted: Thu Feb 09, 2012 1:22 pm    Post subject: Can we add job from CA jobtrac to CTLM
Reply with quote

Hi,

I am working in Control-M. Is there any utilities available to add a job from JOBTRAC to Control-M
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Thu Feb 09, 2012 1:27 pm    Post subject:
Reply with quote

resurrection spree today :-)

Edited: oops, saw 2011 and thought it was 1 year old when actually its only 2 months.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7233

PostPosted: Thu Feb 09, 2012 2:34 pm    Post subject: Reply to: control-m IN conditions
Reply with quote

Should still have been a new topic. Nothing to do with answering the original question or points raised therein.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Feb 09, 2012 8:13 pm    Post subject:
Reply with quote

I'll answer here before the topic gets split.

There is a BMC conversion guide for Jobtrac. For whatever reason, I do not have a copy of it in the same directory where all my other Control-M books are kept.

I would make a concentrated effort to lay your hands on that guide. It will probably have everything you need.

Here's a hint: if your only response to this is to post back here that you don't have access to it, then you are not the person for this job.
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
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 Which Control block has the DSNTYPE i... sudarshan.srivathsav PL/I & Assembler 4 Thu Jan 28, 2016 11:29 pm
No new posts DFSORT report with multiple conditions Bill Woodger DFSORT/ICETOOL 9 Wed Jan 20, 2016 2:19 am
No new posts DFSORT control statements in any order ? ronald masters DFSORT/ICETOOL 2 Tue Dec 15, 2015 11:22 pm


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