ADSM-L

Re: How to Run a Schedule on the first Saturday of each month.

2003-01-21 17:11:29
Subject: Re: How to Run a Schedule on the first Saturday of each month.
From: Kent Monthei <Kent.J.Monthei AT GSK DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 21 Jan 2003 16:36:34 -0500
Alex, try the same thing for Sat 03/29/2002 (the fifth Saturday in a
5-Saturday month).  Results are interesting & probably not desired.

Both of the schedules set DayOfWeek="Saturday", and both deviate from
online help for "Define Schedule" / "Period Units".  I verified that TSM
does follow the documented behavior when DayOfWeek="Any", so I think
that's an unstated presumption of the online help documentation:

(from online help)
Months
          Specifies that the time between startup windows is in months.
           Note:When you specify PERUNITS=MONTHS, the scheduled operation
                will be processed each month on the same date. For
example,
                If the start date for the scheduled operation is
                02/04/1998, the schedule will process on the 4th of every
                month thereafter. However, if the date is not valid for
the
                next month, then the scheduled operation will be processed
                on the last valid date in the month. Thereafter,
subsequent
                operations are based on this new date. For example, if the
                start date is 03/31/1998, the next month's operation will
                be scheduled for 04/30/1998. Thereafter, all subsequent
                operations will be on the 30th of the month until
February.
                Because February has only 28 days, the operation will be
                scheduled for 02/28/1999. Subsequent operations will be
                processed on the 28th of the month.


Kent Monthei
GlaxoSmithKline






"Alex Paschal" <AlexPaschal AT FREIGHTLINER DOT COM>

Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
21-Jan-2003 11:22
Please respond to "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>




        To:     ADSM-L

        cc:
        Subject:        Re: How to Run a Schedule on the first Saturday of each 
month.

Mark,

Actually, Joachim's suggestion works.  You can definitely do first
Saturday
of the month.  All the dates below are the first Saturday of the month.

Alex Paschal
Freightliner, LLC
(503) 745-6850 phone/vmail

tsm: TSM>def sched test t=a cmd="q sched" startd=02/01/2003
starttime=06:00
 period=1 perunit=month dayofweek=saturday active=yes

tsm: TSM>q ev test begind=-0 endd=+750 t=a

Scheduled Start          Actual Start             Schedule Name     Status
--------------------     --------------------     -------------
---------
02/01/2003 06:00:00                               TEST              Future
03/01/2003 06:00:00                               TEST              Future
04/05/2003 06:00:00                               TEST              Future
05/03/2003 06:00:00                               TEST              Future
06/07/2003 06:00:00                               TEST              Future
07/05/2003 06:00:00                               TEST              Future
08/02/2003 06:00:00                               TEST              Future
09/06/2003 06:00:00                               TEST              Future
10/04/2003 06:00:00                               TEST              Future
11/01/2003 06:00:00                               TEST              Future
12/06/2003 06:00:00                               TEST              Future
01/03/2004 06:00:00                               TEST              Future
02/07/2004 06:00:00                               TEST              Future
03/06/2004 06:00:00                               TEST              Future
04/03/2004 06:00:00                               TEST              Future
05/01/2004 06:00:00                               TEST              Future
06/05/2004 06:00:00                               TEST              Future
07/03/2004 06:00:00                               TEST              Future
08/07/2004 06:00:00                               TEST              Future
09/04/2004 06:00:00                               TEST              Future
10/02/2004 06:00:00                               TEST              Future
11/06/2004 06:00:00                               TEST              Future
12/04/2004 06:00:00                               TEST              Future
01/01/2005 06:00:00                               TEST              Future
02/05/2005 06:00:00                               TEST              Future

tsm: TSM>q sched test f=d t=a

                 Schedule Name: TEST
                   Description:
                       Command: q sched
                      Priority: 5
               Start Date/Time: 02/01/2003 06:00:00
                      Duration: 1 Hour(s)
                        Period: 1 Month(s)
                   Day of Week: Saturday
                    Expiration:
                       Active?: Yes
Last Update by (administrator): ADMIN
         Last Update Date/Time: 01/21/2003 08:11:53
              Managing profile:

-----Original Message-----
From: Mark Stapleton [mailto:stapleto AT BERBEE DOT COM]
Sent: Tuesday, January 21, 2003 6:42 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: How to Run a Schedule on the first Saturday of each month.


On Tue, 2003-01-21 at 07:09, Fought,Tom wrote:
> Please instruct me on how to setup a schedule which
> runs only on the first Saturday of each month. I find
> the schedule options somewhat unclear.

It can't be done with the TSM scheduler. You could do every fourth
Saturday, but that's as close as you can get.

If you *have* to schedule the first Saturday of every month, you're
going to have to use an external scheduler (cron, at).

--
Mark Stapleton (stapleton AT berbee DOT com)