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

control-m IN conditions


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Dec 19, 2011 10:29 pm
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
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: 1702
Location: Australia

PostPosted: Tue Dec 20, 2011 4:27 am
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
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: 1702
Location: Australia

PostPosted: Tue Dec 20, 2011 7:04 am
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
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: 1702
Location: Australia

PostPosted: Tue Dec 20, 2011 9:16 am
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
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
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
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
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: 1744
Location: Tirupur, India

PostPosted: Thu Feb 09, 2012 1:27 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Feb 09, 2012 2:34 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Dynamically build sort control statem... SYNCSORT 18
No new posts How to load to DB2 with column level ... DB2 6
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Db2 SQL - how to switch among differe... DB2 18
No new posts To search DB2 table based on Conditio... DB2 1
Search our Forums:

Back to Top