The Ex-Accounting application - organizing the company's accounting jobs
Control-M comes with a number of examples that you can open in Control-M . To load this example into Control-M , see Job definitions examples.
The accounting requirements of the company collectively fall into an application called Ex-Accounting. These accounting requirements, in turn, fall into the following sub-Applications:
Ex-Invoicing: Contains invoice jobs
Ex-Payroll: Contains payroll jobs
To handle its invoicing needs, the company must process several types of information on a daily basis. The company runs a set of batch jobs each day, each job responsible for a particular type of information. The following list indicates the types of information, and the jobs that process the information:
CalcRevenue job: Calculate the day’s revenues
CalcExpenses job: Calculate the day’s expenses
CalcProfits job: Calculate the day’s profits
DueInvoices job: Determine which customer invoices should be billed that day
All three jobs generate a printout of the processing results, and therefore require an available printer.
You can see the following:
The CalcRevenue, CalcExpenses, and CalcProfits jobs run daily. In the Scheduling tab, Every Day is selected.
CalcProfits runs only after CalcRevenue and CalcExpenses have ended successfully.
NOTE: CalcRevenue and CalcExpenses can run in any order but both of those jobs must end successfully before CalcProfits can run.
The Conditions tabs of these jobs are filled in as follows:
Both CalcRevenue and CalcExpenses have no predecessor jobs and therefore have no In conditions.
When each job, CalcRevenue and CalcExpenses, ends successfully, it adds an Out condition (ExCalcRevenuOK and ExCalcExpensesOK, respectively). The date definition for these conditions Order Date, which ensures that the condition is added to the system with the original scheduling date of the job.
CalcProfits runs only after both CalcRevenue and CalcExpenses have successfully ended. CalcProfits has ExCalcRevenuOK and ExCalcExpensesOK defined as In prerequisite conditions. To ensure that these In conditions are only satisfied by Out conditions from the same day, they are assigned a date value of Order Date, which resolves to the original scheduling date. To ensure that both conditions are satisfied, an AND relationship value is selected in the field above the In Conditions section.
No job other than CalcProfits has CalcRevenue and CalcExpenses as predecessor jobs. To increase system efficiency, after CalcProfits ends successfully, it deletes the ExCalcRevenuOK and ExCalcExpensesOK prerequisite conditions from the system by defining them as Out conditions (instructs Control-M to delete, rather than add, the conditions). To ensure that only the conditions from that date are deleted, the Out conditions are defined with an Order Date date value.
In case another job has CalcProfits as a predecessor job, after CalcProfits ends successfully, it adds ExCalcProfitsOK as an Out condition, with Order Date as the date reference.
The printer required by each of the jobs is available before the job is submitted.
Each of these jobs prints out a report of the data it processes (revenues, expenses, or profits). To ensure that the printer required for printing the reports is available, the Control Resources section in each of the jobs indicates that the job requires exclusive control of the printer (in this case, Printer1). The job is not submitted unless the printer is available.
Define a job that prints invoices that become due:
The DueInvoices batch job prints out the list of customers whose invoices have become due. In the General tab, the File Name and File Path fields identify the file name and location of the batch job. In the Scheduling tab, Every day is selected.
The printer required by the job is available before job submission:The job prints out a report of the due invoices. To ensure that the printer required for printing the report is available, the Control Resources section indicates that the job requires exclusive control of the printer (in this case, Printer1). The job is not submitted unless the printer is available.