Use the UPDATE SCHEDULE command to modify an existing schedule. The UPDATE SCHEDULE command takes two forms, depending on whether the schedule applies to client operations or administrative commands. The syntax and parameters for each form are defined separately.
Restrictions:
Updating Client Schedules: Use the UPDATE SCHEDULE command to modify selected parameters for the specified schedule. If you do not explicitly update a parameter, it remains unchanged.
This command does not change the client associations that have been made to this schedule. Any clients that are associated with the original schedule execute the modified schedule.
A schedule determines:
For each schedule, a startup window is specified. The startup window is the time period within which the scheduled operation must begin execution. The operation does not necessarily complete execution within this window. If the operation needs to be retried for any reason, the retry attempt must begin before the startup window elapses, or the operation is not retried.
Privilege Class
To update a client schedule, you must have system privilege, unrestricted policy privilege, or restricted policy privilege for the policy domain to which the schedule belongs. To update an administrative schedule, you must have system privilege.
Syntax for Updating Client Schedules
(1)
>>-UPDate SCHedule-------domainname--schedulename--------------->
.-Type--=--Client--.
>---+------------------+--+------------------------------+------>
'-DESCription--=--description--'
>---+-----------------------------+----------------------------->
'-ACTion--=--+-Incremental-+--'
+-Selective---+
+-Archive-----+
+-REStore-----+
+-RETrieve----+
+-Command-----+
'-Macro-------'
>---+---------------------------+------------------------------->
'-OPTions--=--optionstring--'
>---+---------------------------+------------------------------->
'-OBJects--=--objectstring--'
>---+-----------------------------+----------------------------->
'-PRIority--=--priorityvalue--'
>---+--------------------------+--+--------------------------+-->
'-STARTDate--=--startdate--' '-STARTTime--=--starttime--'
>---+-----------------------------+----------------------------->
'-DURation--=--durationvalue--'
>---+------------------------------+---------------------------->
'-DURUnits--=--+-Minutes----+--'
+-Hours------+
+-Days-------+
'-INDefinite-'
>---+-------------------------+--+---------------------------+-->
'-PERiod--=--periodvalue--' '-PERUnits--=--+-Hours---+--'
+-Days----+
+-Weeks---+
+-Months--+
+-Years---+
'-Onetime-'
>---+------------------------------+---------------------------->
'-DAYofweek--=--+-ANY-------+--'
+-WEEKDay---+
+-WEEKEnd---+
+-SUnday----+
+-Monday----+
+-TUesday---+
+-Wednesday-+
+-THursday--+
+-Friday----+
'-SAturday--'
>---+----------------------------------+-----------------------><
'-EXPiration=--+-Never----------+--'
'-expirationdate-'
1 | You must specify at least one optional parameter on this command. |
Parameters for Updating Client Schedules
You can specify most options from the client's option file. The option string must be enclosed in quotation marks if it contains any blank characters. When applicable, these options override the options specified by a client after it has successfully contacted the server.
Do not include the following options because they have no effect on the client's execution of the scheduled command:
When you specify ACTION=INCREMENTAL and do not specify any objects with this parameter, the DSMC command is invoked without specified objects and attempts to process objects as defined in the client's option file.
You can specify more than one object by separating the objects with commas, with no intervening spaces. If the value for this parameter contains any blank characters or a string of file names, it must be enclosed in quotation marks. If multiple file names are specified, each must be surrounded by its own pair of double quotes, with one pair of single quotes surrounding the file list. For example, to specify the following file strings:
If two or more schedules for a given client have the same window start time, this value determines the order of execution. The schedule with the highest priority starts first. For example, a schedule with PRIORITY=3 starts before a schedule with PRIORITY=5.
Possible values are:
For example, to specify that the beginning of the initial startup window is 3 days from now, you can specify STARTDATE=TODAY+3 or STARTDATE=+3.
Possible values are:
For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW+02:00 or STARTTIME=+02:00, the beginning of the initial startup window is at 7:00.
For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW-02:00 or STARTTIME=-02:00, the beginning of the initial startup window is at 3:00.
This parameter is used in conjunction with the DURUNITS parameter to specify the length of the startup window. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The duration of the window must be shorter than the period between windows.
This value is ignored if you specify DURUNITS=INDEFINITE.
This parameter is used in conjunction with the DURATION parameter to specify how long the startup window remains open to execute the schedule. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The duration of the window must be shorter than the period between windows. Possible values are:
This parameter is used in conjunction with the PERUNITS parameter to specify the period between startup windows. For example, if you specify PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the operation is scheduled every 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window.
This value is ignored if you specify PERUNITS=ONETIME.
This parameter is used in conjunction with the PERIOD parameter to specify the period between startup windows. For example, if PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the period between startup windows is scheduled every 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window. Possible values are:
If you select a value for DAYOFWEEK other than ANY, and depending on the values for PERIOD and PERUNITS, schedules may not be executed when you would expect. Use the QUERY EVENT command to project when schedules will be executed and thereby ensure that the desired result is achieved.
Possible values are:
Updating Administrative Schedules: Use the UPDATE SCHEDULE command to modify selected parameters for the specified schedule. If you do not explicitly update a parameter, it remains unchanged.
For each schedule, a startup window is specified. The startup window is the time period during which the schedule must be initiated. The schedule will not necessarily complete execution within this window. If the server is not running when this window starts but is started before the end of the defined window is reached, the schedule will run when the server is restarted.
Syntax for Updating Administrative Command Schedules
(1)
>>-UPDate SCHedule-------schedulename--Type--=--Administrative-->
>---+------------------------+--+---------------------+--------->
'-CMD--=--commandstring--' '-ACTIVE--=--+-Yes-+--'
'-No--'
>---+------------------------------+---------------------------->
'-DESCription--=--description--'
>---+-----------------------------+----------------------------->
'-PRIority--=--priorityvalue--'
>---+--------------------------+--+--------------------------+-->
'-STARTDate--=--startdate--' '-STARTTime--=--starttime--'
>---+-----------------------------+----------------------------->
'-DURation--=--durationvalue--'
>---+------------------------------+---------------------------->
'-DURUnits--=--+-Minutes----+--'
+-Hours------+
+-Days-------+
'-INDefinite-'
>---+-------------------------+--+---------------------------+-->
'-PERiod--=--periodvalue--' '-PERUnits--=--+-Hours---+--'
+-Days----+
+-Weeks---+
+-Months--+
+-Years---+
'-Onetime-'
>---+------------------------------+---------------------------->
'-DAYofweek--=--+-ANY-------+--'
+-WEEKDay---+
+-WEEKEnd---+
+-SUnday----+
+-Monday----+
+-TUesday---+
+-Wednesday-+
+-THursday--+
+-Friday----+
'-SAturday--'
>---+----------------------------------+-----------------------><
'-EXPiration=--+-Never----------+--'
'-expirationdate-'
1 | You must specify at least one optional parameter on this command. |
Parameters for Updating Administrative Command Schedules
| Note: | Redirection characters cannot be specified with this parameter. |
If two or more schedules for a given client have the same window start time, this value determines the order of execution. The schedule with the highest priority starts first. For example, a schedule with PRIORITY=3 starts before a schedule with PRIORITY=5.
Possible values are:
For example, to specify that the beginning of the initial startup window is 3 days from now, you can specify STARTDATE=TODAY+3 or STARTDATE=+3.
Possible values are:
For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW+02:00 or STARTTIME=+02:00, the beginning of the initial startup window is at 7:00.
For example, if you issue the UPDATE SCHEDULE command at 5:00 with STARTTIME=NOW-02:00 or STARTTIME=-02:00, the beginning of the initial startup window is at 3:00.
This parameter is used in conjunction with the DURUNITS parameter to specify the length of the startup window. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The duration of the window must be shorter than the period between windows.
This value is ignored if you specify DURUNITS=INDEFINITE.
This parameter is used in conjunction with the DURATION parameter to specify how long the startup window remains open to execute the schedule. For example, if DURATION=20 and DURUNITS=MINUTES, the schedule must be started within 20 minutes of the start date and start time. The duration of the window must be shorter than the period between windows. Possible values are:
This parameter is used in conjunction with the PERUNITS parameter to specify the period between startup windows. For example, if you specify PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the operation is scheduled every 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window.
This value is ignored if you specify PERUNITS=ONETIME.
This parameter is used in conjunction with the PERIOD parameter to specify the period between startup windows. For example, if PERIOD=5 and PERUNITS=DAYS (assuming that DAYOFWEEK=ANY), the period between startup windows is scheduled every 5 days after the initial start date and start time. The period between startup windows must exceed the duration of each window. Possible values are:
If you select a value for DAYOFWEEK other than ANY, depending on the values for PERIOD and PERUNITS, schedules may not be executed when you would expect. Use the QUERY EVENT command to project when schedules will be executed and thereby ensure that the desired result is achieved. Possible values are:
Examples
Task 1
Update the MONTHLY_BACKUP schedule that belongs to the STANDARD policy domain by setting its priority value to 1.
Task 2
Update the WEEKLY_BACKUP schedule that belongs to the EMPLOYEE_RECORDS policy domain to expire on March 29, 1997 (03/29/1997).
Task 3
Update existing administrative schedule named BACKUP_BACKUPPOOL so that starting today, the BACKUPPOOL primary storage pool is backed up to the COPYSTG copy storage pool every three days at 10:00 p.m.
Related Commands
Table 246. Commands Related to UPDATE SCHEDULE
| Command | Description |
|---|---|
| COPY SCHEDULE | Creates a copy of an existing schedule. |
| DEFINE SCHEDULE | Defines a schedule for a client operation or an administrative command. |
| DELETE SCHEDULE | Deletes a schedule from the database. |
| QUERY EVENT | Displays information about scheduled and completed events for selected clients. |
| QUERY SCHEDULE | Displays information about one or more schedules. |
| SET MAXCMDRETRIES | Specifies the maximum number of retries after a failed attempt to execute a scheduled command. |
| SET MAXSCHEDSESSIONS | Specifies the maximum number of client/server sessions available for processing scheduled work. |
| SET RETRYPERIOD | Specifies the time between retry attempts by the client scheduler. |