Sched Language
Sched Language
will result in an error being returned when the schedule is processed by schedulr.
For this example, you should do one of the following:
Use composer to:
Create a filename from schedule=cbdbu01#NN_CBCID1001YS31 (or all the schedules that are
defined in this way).
The following example selects job stream testskd2 to run every weekday except
those days whose dates appear on calendars named monthend and holidays:
schedule testskd2 on weekdays except monthend,holidays
The following example selects job stream testskd3 to run every weekday except
May 15,1999 and May 23, 1999:
schedule testskd3 on weekdays except 05/15/99,05/23/99
The following example selects job stream testskd4 to run every day except two
weekdays prior to any date appearing on a calendar named monthend:
schedule testskd4 on everyday except monthend-2 weekdays
Follows
• follows Defines the other jobs and job streams that must complete successfully
before a job or job stream is launched.
• Synopsis Use the following syntax for job streams:
follows [netagent::][wkstation#]jstream[.jobname | @] [,...] Use the following
syntax for jobs: follows [netagent::][wkstation#]jstream{.jobname | @} | jobname
[,...]
schedule skedc on fr
follows site1#sked4,site2#sked5.joba
Select job stream sked2 to run on 01/01/2001 and on all workdays as long as they are not listed in
the freedays calendar named GERMHOL.
schedule sked2
freedays GERMHOL
on 01/01/2001, workdays
job statement
• Job statements place jobs in a job stream and define job dependencies. In a job statement, you
can also include job attributes and recovery options that add a new job or modify an existing job
in the database.
Synopsis [wkstation#]jobname
[description “text”]
[scriptname filename | docommand “commandline”]
[streamlogon username]
[interactive]
[rccondsucc ″Success Condition″]
[recovery {stop | continue | rerun}
[after [wkstation#]jobname] [abendprompt “text”] ]
[job-dependency [,...]]
Keyjob
• The keyjob keyword is used to mark a job as key or critical in both the database and
daily plan and for monitoring by applications, such as Tivoli Business Systems
Manager.
SCHEDULE cpu1#sched1
ON everyday
KEYSCHED
AT 0100
cpu1#myjob1 KEYJOB
END
Keysched
• The keysched keyword is used to mark a job stream as key or critical in both the database and
daily plan and for monitoring by applications, such as Tivoli Business Systems Manager .
Limit
• Limits the number of jobs that can run simultaneously in a job stream
• limit joblimit
schedule sked2 on fr
limit 5 :
Needs
• Defines resources that must be available before a job or job stream is launched.
• needs [n] [wkstation#]resourcename [,...]
schedule sked3 on fr
onuntil action Specifies the action to be taken on a job or job stream whose until time has expired,
but the job or job stream has not yet started. The following are the possible values of the action
parameter:
suppr The final job stream state is HOLD if the job stream contains at least one every job.
Otherwise the final state is calculated using the normal rules and the jobs with the option
onuntil suppr are considered in SUCC state when the until time occurs, even if their
dependencies have actually not been released.
cont The job or job stream runs when all necessary conditions are met and a notification message is
written to the log when the until time elapses.
canc A job or job stream is cancelled when the until time specified expires. Any job or job stream
that was dependent on the completion of a job or job stream that was cancelled, will run
because the dependency no longer exists.