Triggers in Ca7:
Schedule
triggers can be used as a more efficient alternative to date/time
schedules. Triggers cause jobs to be dynamically scheduled based solely on
completion of an event. The triggering event may be date/time scheduled or it
too can be automatically triggered by even another event. Schedule triggers
have no association with a calendar. Therefore, no calendar related maintenance
is ever required. Once defined, triggers are perpetual, remaining in effect
until they are either deleted or modified by the user. In addition to relieving
the user of annual calendar schedule maintenance, triggers area far more
efficient scheduling mechanism in terms of system overhead. There are three
types of triggers available in CA-7:
-
Job
-
Network
-
Data
Set
With
each trigger, multiple jobs can be triggered if so desired.
Job Triggers: When a predecessor job completes successfully, a
trigger initiates scheduling of the successor or dependent job(s) that will be
brought into the request queue. This newly triggered job may also have a
trigger definition that upon successful completion, causes another job to
start. For ease of definition and understanding, the Predecessor/Successor
relationship is commonly used to control sequencing of jobs in the production
environment. Job triggers are defined with the DB.2.4 function.
Network Triggers: Input (or preprocessing) workstation networks can be
used to trigger CPU jobs which are dependent on the completion of that network.
These triggers take effect whenever the last workstation in the network is
posted as being complete. The job(s) to be triggered is defined through
the DB.2.5 function. Multiple jobs can
be triggered by the completion of a single network. Output (or postprocessing )
networks cannot be used to trigger jobs.
Data Set Triggers: Data set output activity can also
be used as a trigger. Whenever a sequential data set is created or updated, CPU
jobs can be triggered by the completion of that activity. Scheduling of jobs in
this manner is accomplished through the DB.2.6 and DB.6 screens. A data set
cannot be used as a trigger if it is defined as PREM=YES on the DB.6 screen or
if it is output by a job which is defined as MAINT=YES. Data set triggers are
very useful if you have a job which
needs to run only if a specifies data set has been created. If the data set
used as a trigger specifies YES for the DB.6 screen parameter POST AT CLOSE
TIME, the data set trigger takes effect when the data set is successfully
closed after being opened for output or update . If POST AT CLOSE TIME is NO,
then the trigger takes effect on successful completion of the job in which the
data set was created or updated. The advantage of posting at close time is that
successful completion of an entire job is not necessary for data set triggering
or requirement posting to take place.
No comments:
Post a Comment