How to schedule a job ones in the two weeks

All questions about Control-M jobs definitions
Post Reply
Janctm

How to schedule a job ones in the two weeks

Post by Janctm » 07 Jan 2013 7:27

I want to schedule a job ones in the two weeks and i wonder if this in possible without using a (periodic) calender.

I am working with controlm 6.2

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 11 Jan 2013 9:40

I dont understand the schedule you want, can you explain better please?

Janctm

Post by Janctm » 23 Jan 2013 1:55

Job must run one time in the two weeks. for instance:
on sunday
6 jan
20 jan
3 feb
17 feb enz

User avatar
Danny
Nouveau
Nouveau
Posts: 21
Joined: 18 May 2010 12:00
Location: EMEA
Contact:

Post by Danny » 24 Jan 2013 2:21

I don't see any other reasonable way then working with calendars.

You could run the job everyday, and check in the job if (following your example) the day-6/14 is a natural number, and run the rest of the script if that is the case..

User avatar
nicolas_mulot
Nouveau
Nouveau
Posts: 149
Joined: 07 Jan 2010 12:00

Post by nicolas_mulot » 24 Jan 2013 5:16

Janctm,
Ther is a possibility of a script-based solution. Pls check your private messages on that forum

Cheers
Nicolas Mulot

User avatar
Bentoges
Nouveau
Nouveau
Posts: 1
Joined: 15 Mar 2013 12:00
Contact:

legal recruiter

Post by Bentoges » 15 Mar 2013 10:49

Great piece of writing!
I am confident this is going to help a lot of community.

User avatar
shareef
Nouveau
Nouveau
Posts: 1
Joined: 12 Sep 2011 12:00

schedule job to run once in two weeks

Post by shareef » 03 Jul 2013 9:20

any script to schedule job once in two weeks and it should run on saturday only

frankp

Scheduling once every 2 weeks per month

Post by frankp » 09 Jul 2013 6:47

Hi you can try using the rules functionality combined with a Sunday calendar (even though you don't want to use a calendar) in the Month Days section. Create a calendar and add all Sunday days for each month and select it in the Calendar field of the job definition to use it. Next in the rules field of the job definition select the weeks you don't want to order using -Dn separated by commas and no spaces.

Example:

-D1,-D3,-D5 Rules
Calendar: Sunday

Result will order on 2nd and 4th Sunday of each Month. Effectively once every two weeks. I've used this functionality in version 7 just recently and I believe rules functionality was available back in v 6.2. Hope this helps with an alternate idea!

Frank
http://www.gssinfotech.com/services/inf ... rol-m.html

User avatar
Vishal
Nouveau
Nouveau
Posts: 3
Joined: 10 Jan 2013 12:00

Post by Vishal » 17 Jul 2013 12:15

@frankp : The scheduling you told would work if I want to run the job on 2nd and 4th Sunday but it is no good if I want the job on alternate Sundays or once in 2 weeks.

Post Reply