Unit 2 Lab B
Summary
To use the concepts presented in Units 1 and 2 to create a schedule that will jobs to manage the inventory for Congo Online Retail Inc.
Objective
Congo Online Retail Inc. needs to run daily inventory checks every day of the week using a schedule called Congo Inventory Management.
To manage the inventory for each product, a special program must be run for each department:
- Toys – 
"C:\scripts\CheckInvToys.EXE" - Electronics – 
"C:\scripts\CheckInvElectronics.EXE" - Clothing – 
"C:\scripts\CheckInvClothing.EXE" 
Each product is assigned a Product ID Number. This ID Number will be used as an argument (-t) by the program for each job:
- Legos - 
11 - Nerf - 
12 - Smartphones - 
21 - XBOX - 
22 - Levis - 
31 - Nike - 
32 
Each of the jobs must run every 30 minutes until 11:45 PM.
The programs read the database and generate order requests to purchase new items. At the end of the day, an Inventory Purchase Report job is ran that creates a report with the purchase results for each item. The report job is a UNIX job that will execute the following Start Image: /usr/local/labfiles/CheckInvPurRpt –t100  
Lab Instructions
- Create a schedule called Congo Inventory Management
 - Add Documentation for the schedule.
 - Monday-Sunday are working days
 - Auto-build the schedule 
7days in advance for1day - Auto-delete the schedule for 
7days ago 
You can reference Unit 1 - Exercise 1 for steps on how to create a Schedule.
- Create a Windows Job for each of the products in the introduction.
 - Name each Job the same as its product name
 - These jobs need to run on the 
SMATRAININGMachine - These jobs need to run as the 
SMATRAINING\SMAUSERUser ID - Each of the six product jobs will run the program for its corresponding department. 
- Example: Legos will run 
"[[Path_Scripts]]\CheckInvToys.EXE" -t11 
 - Example: Legos will run 
 - Add Documentation for each Job.
 - These Jobs must run Monday-Sunday
 - These Jobs must to run every 30 minutes when they have Finished OK
 - The latest run time of the 6 Jobs is 11:45 PM
 - Tag these 6 Jobs according to the product type (Toys, Electronics, or Clothing)
 
You can reference Unit 1 - Exercise 3 for steps on how to create a Windows Job.
You can reference Unit 2 - Exercise 11 for steps on how to create a Looping Job.
You can reference Unit 1 - Exercise 5 for steps on how to add Tags
- Create a Unix Job named Inventory Purchase Report
 - This job needs to run on the 
SUSEVMMachine - This job needs to run as the 
0/0Group ID/User ID - Call the program on the Start Image: 
/usr/local/labfiles/CheckInvPurRpt –t100 - Add Documentation to the job.
 - This job needs to run Monday-Sunday
 - The Inventory Purchase Report requires the 6 Windows Jobs and must run after all runs have completed
 
You can reference Unit 2 - Exercise 6 for steps on how to create a UNIX Job.
You can reference Unit 1 - Exercise 4 for steps on how to add Dependencies.
- Build the Schedule for today and tomorrow
 
You can reference Unit 1 - Exercise 6 for steps on how to build the Schedule.
The jobs will complete and return to a waiting status until the repeating offset is qualified. The SAM.log can be checked to verify the jobs have executed successfully.
Workflow Layout
