Previous Topic: Action Statement DefinitionNext Topic: CA TLMS Health Checker Service (HCK)


Sample Schedules

A Simple Schedule with One TOD Event and One Action Statement

/*                                                           */
/* The following statements describe one event at 08:00      */
/* and an action statement that will notify the DTS subtask. */
/*                                                           */
SCHD NAME(EIGHTAM),TOD(08.00)
/*                                                           */
WHEN(EIGHTAM) NOTIFY(DTS)
/*                                                           */
/* End of sample                                             */
/*                                                           */

A Simple Schedule with Two TOD Events and Two Action Statements

/*                                                           */
/* The following statements describe one event at 08:00      */
/* and an action statement that will notify the DTS subtask. */
/*                                                           */
SCHD NAME(EIGHTAM), TOD(08.00)
SCHD NAME(TENAM), TOD(10.00)
/*                                                           */
/*                                                           */
/* At 8 am, notify DTS.                                      */
/* At 10 am, notify the APEC task to start a scan.           */
/*                                                           */
WHEN(EIGHTAM) NOTIFY(DTS)
WHEN(TENAM) NOTIFY(APEC) MSG=SCAN
/*                                                           */
/* End of sample                                             */
/*                                                           */

A Schedule with Multiple TOD Events, a Grouping Entry, and One Action Statement

/*                                                           */
/* The following statements define TOD events for hours 09   */
/* through 15, a grouping statement, and an action statement.*/
SCHD NAME(NINEAM) ,TOD(09.00)
SCHD NAME(TENAM) ,TOD(10.00)
SCHD NAME(ELEVENAM) ,TOD(11.00)
SCHD NAME(NOON) ,TOD(12.00)
SCHD NAME(ONEPM) ,TOD(13.00)
SCHD NAME(TWOPM) ,TOD(14.00)
SCHD NAME(THREEPM) ,TOD(15.00)
SCHD NAME(FOURPM) ,TOD(16.00)
/*                                                            */
/*                                                            */
/* Group all of the above TOD definitions to a single name,   */
/* "DAY_SHIFT"                                                */
/*                                                            */
/*                                                            */
SCHD NAME(DAY_SHIFT),
     GROUP(NINEAM,TENAM,ELEVENAM,NOON,ONEPM,TWOPM,THREEPM,FOURPM)
/*                                                            */
/*                                                            */
/* The next statement will send the text "EVENT SCHD(DAY_SHIFT)" 
/* to cts task DTS.                                           */
/*                                                            */
/*                                                            */
WHEN(DAY_SHIFT) NOTIFY(DTS)
/*                                                            */
/*                                                            */
/* End of sample                                              */
/*                                                            */
/*                                                            */
/*                                                            */

A Schedule that Defines Every Hour of the Day, Multiple Grouping Statements, and Several Action Statements

Note that only one action statement is enabled. TOD specifications and group operands may not be continued. The group specifications are cumulative. You may repeat the group name when grouping multiple TOD events into a single group, as shown below.

/*                                                        */
/* The following statements describe events on each hour. */
/* The name of each event corresponds with the hour       */
/*                                                        */
SCHD NAME(ONEAM) ,TOD(01.00)
SCHD NAME(TWOAM) ,TOD(02.00)
SCHD NAME(THREEAM) ,TOD(03.00)
SCHD NAME(FOURAM) ,TOD(04.00)
SCHD NAME(FIVEAM) ,TOD(05.00)
SCHD NAME(SIXAM) ,TOD(06.00)
SCHD NAME(SEVENAM) ,TOD(07.00)
SCHD NAME(EIGHTAM) ,TOD(08.00)
SCHD NAME(NINEAM) ,TOD(09.00)
SCHD NAME(TENAM) ,TOD(10.00)
SCHD NAME(ELEVENAM) ,TOD(11.00)
SCHD NAME(NOON) ,TOD(12.00)
SCHD NAME(ONEPM) ,TOD(13.00)
SCHD NAME(TWOPM) ,TOD(14.00)
SCHD NAME(THREEPM) ,TOD(15.00)
SCHD NAME(FOURPM) ,TOD(16.00)
SCHD NAME(FIVEPM) ,TOD(17.00)
SCHD NAME(SIXPM) ,TOD(18.00)
SCHD NAME(SEVENPM) ,TOD(19.00)
SCHD NAME(EIGHTPM) ,TOD(20.00)
SCHD NAME(NINEPM) ,TOD(21.00)
SCHD NAME(TENPM) ,TOD(22.00)
SCHD NAME(ELEVENPM) ,TOD(23.00)
SCHD NAME(MIDNIGHT) ,TOD(00.00)
/*                                                            */
/* The following statements group the events into groups.     */
/* The first group is the night_shift group, with entries t1  */
/* through 8.                                                 */
/*                                                            */
SCHD NAME(NIGHT_SHIFT)
 GROUP(ONEAM,TWOAM,THREEAM,FOURAM,FIVEAM,SIXAM,SEVENAM,EIGHTAM)
/*                                                            */
/* The next group, day_shift, describes the hours 9 t0 16.    */
/*                                                            */
SCHD NAME(DAY_SHIFT)
   GROUP(NINEAM,TENAM,ELEVENAM,NOON,ONEPM,TWOPM,THREEPM,FOURPM)
/*                                                            */
/* Finally, the evening_shift group describes hours 17 through*/
/* 24. The "EVENING_SHIFT" name is repeated in order to       */
/* specify the additional entries.                            */
/*                                                            */
SCHD NAME(EVENING_SHIFT)
     GROUP(FIVEPM,SIXPM,SEVENPM,EIGHTPM)
SCHD NAME(EVENING_SHIFT)
     GROUP(NINEPM,TENPM,ELEVENPM,MIDNIGHT)
/*                                                            */
/* The next statements describe a group that has all hourly   */
/* entries in it. You can only specify 8 entries on the       */
/* group statement, so the entire hourly SCHD NAME(HOURLY)    */
/* statement is repeated, each having the next 8 hourly       */
/* entries in it.                                             */
/*                                                            */
SCHD NAME(HOURLY)
  GROUP(ONEAM,TWOAM,THREEAM,FOURAM,FIVEAM,SIXAM,SEVENAM,EIGHTAM)
/*                                                            */
/* Continue specifying the hourly group with the next 8 hours */
/* in it.                                                     */
/*                                                            */
SCHD NAME(HOURLY)
  GROUP(NINEAM,TENAM,ELEVENAM,NOON,ONEPM,TWOPM,THREEPM,FOURPM)
/*                                                            */
/* Continue specifying the hourly group with the next 8 hours */
/* in it.                                                     */
SCHD NAME(HOURLY)
     GROUP(FIVEPM,SIXPM,SEVENPM,EIGHTPM)
SCHD NAME(HOURLY)
     GROUP(NINEPM,TENPM,ELEVENPM,MIDNIGHT)
/*                                                            */
/* The next statement will send the message: EVENT SCHD(HRLY) */
/* to CTS task DTS. Since each TOD event is defined to HOURLY,*/
/* a message will be sent at the start of each hour.          */
/*                                                            */
/*                                                            */
WHEN(HOURLY) NOTIFY(DTS)
/*                                                            */
/*                                                            */
/* The format of a command to send a message for each event   */
/* in the day shift would be:                                 */
/*                                                            */
WHEN(DAY_SHIFT) NOTIFY(DTS)
/*                                                            */
/* The format of a command to send a message for each event   */
/* in the night shift would be:                               */
/*                                                            */
WHEN(NIGHT_SHIFT) NOTIFY(DTS)
/*                                                            */
/* The format of a command to send a message for each event   */
/* in the evening shift would be:
/*                                                            */
WHEN(EVENING_SHIFT) NOTIFY(DTS)
/*                                                            */
/*                                                            */
/* End of sample                                              */
/*                                                            */