Unit 4 Exercise 6
Exercise 6: SubSchedule - Multiple Runs
Objective
To create a schedule that utilizes a sub-schedule called by multiple container jobs.
Summary
Create a Sub-Schedule named SS-Repeating with an Instance Definition called RUNTIME with a values of 10. This Sub-Schedule will have 5 Windows jobs that run in a sequential chain.
Example: Job 1 → Job 2 → Job 3 → Job 4 → Job 5
Create a Schedule named Repeating Schedule. This schedule will contain 4 container jobs that each will call the sub-schedule and will run at specified times during the day.
Instructions
Create the Sub-Schedule
1.In Library > Administration, select on Master Schedules. 2.Click the Add button. 3.On Master Schedule Definition screen:
- In the Name field, enter
SS-Repeating
. - In the Documentation field, enter some documentation
- Example: This is the Daily Sub-Schedule.
- In the Schedule Settings frame, mark the SubSchedule checkbox.
- Saturday and Sunday are working days.
- This sub-schedule doesn't use the Master Holiday Calendar
- Click the Save button. 4.Click Back
Add Jobs to the SubSchedule
5.In Studio, select SS-Repeating. 6.Click the View button. 7. Select Add Job in the side menu. 8. On the Master Job Definition screen:
- In the Name textbox, enter
Job 1
. - In the Job Type dropdown, select Windows.
- In the Machine Selection dropdown, select the SMATraining.
- In the User ID dropdown, select SMATRAINING\SMAUSER.
- In the Command Line field, type:
"[[PATH_Windows]]\genericp.exe" -t[[RUNTIME]]
- Click the Save.
- Click the Lock icon in the upper right-hand corner.
- Scroll to and expand the Frequency box.
- Within the Frequency box, select Example-Mon-Sun-O in the Inactive list and move it to the Active list.
- Click the Save button.
- Click Back.
- Utilizing the Copy function, copy Job 1 until you have 5 jobs total.
- Create Dependencies between the 5 jobs so they run in a sequential chain.
- Job 1 → Job 2 → Job 3 → Job 4 → Job 5
Create the Primary Schedule
- In Library > Administration, select on Master Schedules.
- Click the Add button.
- In the Name field, enter
Repeating Schedule
. - In the Documentation field, enter some documentation
- Example: This is the Primary Schedule for the Repeating SubSchedule example.
- Saturday and Sunday are NOT working days.
- This schedule uses the Master Holiday Calendar
- Click the Save button.
- Click Back.
Add the Container Job to the Schedule
- In Studio, using the filter locate and select Repeating Schedule.
- Click the View button.
- Select Add Job in the side menu.
- On the Job Master Definition screen:
- In the Name textbox, enter
0700 Job
. - In the Job Type dropdown list, select Container.
- On the Master SubSchedule dropdown list select SS-Repeating.
- Click the Save button.
- Click the Lock icon in the upper right-hand corner.
- Expand the Documentation box and enter in some documentation.
- Example: **This is a container Job that has the Daily Jobs.
- Scroll to and expand the Frequency box.
- Within the Frequency box, select
Mon-Fri-N
in the Inactive list and move it to the Active list. - Select the Active Frequency.
- Scroll down to the Offset Information, in the Start Offset field, enter
07:00
. - Click the Save button.
- Click Back.
- Utilizing the Copy function, copy the 0700 Job until you have a 1000 Job, 1400 Job, and 1900 Job.
- Edit each of the copied jobs to modify the Frequency Information so the Start Offset matches the time in the job name.
- Example: 1000 Job would have a Start Offset of
10:00
.
Build the Schedule
- Build the Repeating Schedule for today and allow it to run. 23.Validate that the jobs in one of the 4 sub-schedules run successfully.