Last Day of the Month coding question

All questions about Control-M jobs definitions
Post Reply
User avatar
WPant
Nouveau
Nouveau
Posts: 2
Joined: 31 May 2007 12:00

Last Day of the Month coding question

Post by WPant » 31 May 2007 4:51

My 6.1.03 manual advises using L1 to denote the Last Day of the Month in the <Scheduling> tab. This appears to be inconssitent with the logic of using Ln to denote the n-th calendar day of the month.

Can anyone please confirm if a) L31 is the proper way to code a job to load on the Last Day of the Month (without use of a calendar) and b) if L1 can also be used?

Many thanks.

hipikll

Post by hipikll » 01 Jun 2007 9:31

L1 = last day of the month
L31 = first day of the month but only if it has 31 days
--
I checked it on 6.2.1

User avatar
fyot
Nouveau
Nouveau
Posts: 736
Joined: 26 Apr 2005 12:00
Location: PARIS
Contact:

Post by fyot » 04 Jun 2007 3:32

Hi

It's right and if you add L1 with a working day calendar, it will be the last working day in th month.
For example if month contains 30 days and the last working day is 28th, job will be launched the 28th.

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

Post by mauriziog » 08 Jun 2007 6:39

L meaqns that yopu begin to count from the end of the month or the calendar if there is one.
So L1 is the last day of the month: 31 is the month have 31 days or 28 if is february, etc.

L31 is wrong: is the 31th day from the end: the first if the month have 31 days.....

With forecast server from 6.2. version you can easily control the scheduling: very usefull ;-)

have a good day

User avatar
azcat2tx
Nouveau
Nouveau
Posts: 1
Joined: 23 Jan 2008 12:00

Post by azcat2tx » 23 Jan 2008 10:15

How could we schedule a job so that it runs on all days, but the last day of any month?

hipikll

Post by hipikll » 24 Jan 2008 9:15

If I understand your question, try to use "-L1" days field.

hope it'll help

szia

User avatar
bajjer31
Nouveau
Nouveau
Posts: 2
Joined: 26 Jun 2007 12:00
Location: Elizabethtown, KY
Contact:

Post by bajjer31 » 30 Jan 2008 4:02

Greetings - we have a need to schedule a job on the "Last Friday" of the month.

I was initially thinking:
L1 AND 5 (Last day and Friday)

using no special calendars, will this work? Logically, I don't think it will. I would hate to manually code it, since it will have to be updated yearly.

Thanks,
Bill

hipikll

Post by hipikll » 30 Jan 2008 4:32

oh oh.
In this situation Last Friday, you are forced to code it via calendars. There is NO other way.

or ...
how about selecting last 7 days in Days "box" and select "AND" and select "Friday"?


servus

User avatar
bajjer31
Nouveau
Nouveau
Posts: 2
Joined: 26 Jun 2007 12:00
Location: Elizabethtown, KY
Contact:

Post by bajjer31 » 30 Jan 2008 8:59

hipikll wrote:how about selecting last 7 days in Days "box" and select "AND" and select "Friday"?
servus
That's a great solution! We'll use it. I remember this discussion somewhere before, but I just couldn't wrap my head around it.

Thanks,
Bill

Post Reply