EVENT
Valid for
Syncfile
Description
Use EVENT to define an event and its schedule. Associate the event with a file set through the EVENT keyword in DUP parameter argument. For example, you might define an EVENT named DAILY that executes a duplication at 03:00 daily:
EVENT DAILY,
EVERY DAY AT 03:00;
.
.
.
DUP $DATA1.GGSCFG.Z*, TARGET \BKUP.$DAT2.*.*,
ALWAYS
EVENT DAILY;
For this example, the DUP arguments includes EVENT DAILY. At 03:00, every day, data set $DATA1.GGSCFG.Z* is duplicated to data set \BKUP.$DAT2.*.*.
You can include multiple EVENT parameters. You can schedule for time of day, day of week, or date. You can also exclude specific dates or days of the week.
EVENT precedes all other parameters. At least one EVENT entry is required.
Syntax
EVENT event_name, every_options [, exclude_options];
event_name
Any name to identify the EVENT. The name is used by subsequent DUP entries to link file set duplication to an appropriate schedule.
every_options
Can be one of the following:
EVERY DAY AT time
Enter the time as 0100, 0200…1400, 1500, etc.
EVERY date AT time
Specify the month and day of the month, as in: August 3. Month is spelled out. Enter the time as 01:00, 02:00…14:00, 15:00, etc.
EVERY time_interval
Enter an interval, such as 2 HOURS or 10 MINUTES.
exclude_options
Can be one or both of the following:
EXCLUDE day_of_week
Spelled out, such as SUNDAY or SATURDAY.
EXCLUDE date
Specify the month and day of the month, as in: August 3. Month is spelled out.
Example
For this example, two EVENTS are defined, then called by subsequent DUP parameters.
EVENT DAILY,
EVERY DAY AT 1:00;
EVENT FREQUENT,
EVERY 2 HOURS;
DUP $DATA1.GGSCFG.Z*, TARGET \BKUP.$DATA2.*.*,
ALWAYS,
EVENT DAILY;
DUP $DATA1.GGSPARM.*, TARGET \BKUP.$DATA2.*.*,
EVENT FREQUENT;