COPY SCHEDULE (Create a copy of a schedule for administrative operations)
Use the COPY SCHEDULE command to create a copy of an administrative command schedule.
Privilege class
To copy an administrative command schedule, you must have system privilege.
Syntax
Parameters
- current_schedule_name (Required)
- Specifies the name of the schedule you want to copy.
- new_schedule_name (Required)
- Specifies the name of the new schedule. You can specify up to 30 characters
for the name.
If the schedule name is already defined, you must specify REPLACE=YES, or the command fails.
- Type=Administrative
- Specifies that an administrative command schedule is to be copied.
- REPlace
- Specifies whether to replace an administrative command schedule. The default
is NO. The values are:
- No
- Specifies that an administrative command schedule is not replaced.
- Yes
- Specifies that an administrative command schedule is replaced.
Example: Copy an administrative command schedule to another schedule
Copy the administrative command schedule, DATA_BACKUP and name the schedule DATA_ENG. If there is already a schedule with this name, replace it.copy schedule data_backup data_eng
type=administrative replace=yes